src/lib/components/page/page.component.ts
Angular Component for the Base Page Control.
ControlComponent
changeDetection | ChangeDetectionStrategy.OnPush |
Properties |
Methods |
constructor(wmService: WebMapService, refChange: ChangeDetectorRef, render2: Renderer2, elem: ElementRef)
|
|||||||||||||||
Defined in src/lib/components/page/page.component.ts:53
|
|||||||||||||||
Creates an instance of PageComponent.
Parameters :
|
ngAfterViewInit |
ngAfterViewInit()
|
Defined in src/lib/components/page/page.component.ts:78
|
AfterViewInit lifecycle hook.
Returns :
void
|
initializeEvent |
Type : EventEmitter<any>
|
Default value : new EventEmitter<any>()
|
Defined in src/lib/components/page/page.component.ts:53
|
Component is initialized event emitter. |
import {
AfterViewInit,
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
DoCheck,
ElementRef,
EventEmitter,
OnInit,
Renderer2
} from '@angular/core';
import { WebMapService } from '@mobilize/angularclient';
import { ControlComponent } from '@mobilize/winforms-components';
/**
* Angular Component for the Base Page Control.
*
* @export
* @class PageComponent
* @extends {ControlComponent}
* @implements {AfterViewInit}
*/
@Component({
changeDetection: ChangeDetectionStrategy.OnPush,
template: ''
})
export class PageComponent
extends ControlComponent
implements AfterViewInit, OnInit, DoCheck
{
/**
* Component is initialized event emitter.
*
* @type {EventEmitter<any>}
* @memberof PageComponent
*/
initializeEvent: EventEmitter<any> = new EventEmitter<any>();
/**
* Creates an instance of PageComponent.
*
* @param {WebMapService} wmService
* @param {ChangeDetectorRef} refChange
* @param {Renderer2} render2
* @param {ElementRef} elem
* @memberof PageComponent
*/
constructor(
private wmService: WebMapService,
private refChange: ChangeDetectorRef,
private render2: Renderer2,
private elem: ElementRef
) {
super(refChange, render2, elem);
}
/**
* AfterViewInit lifecycle hook.
*
* @memberof PageComponent
*/
ngAfterViewInit(): void {
setTimeout(() => {
this.initializeEvent.emit(this);
}, 0);
}
}