File

src/lib/components/page/page.component.ts

Description

Angular Component for the Base Page Control.

Extends

ControlComponent

Implements

AfterViewInit OnInit DoCheck

Metadata

Index

Properties
Methods

Constructor

constructor(wmService: WebMapService, refChange: ChangeDetectorRef, render2: Renderer2, elem: ElementRef)

Creates an instance of PageComponent.

Parameters :
Name Type Optional
wmService WebMapService No
refChange ChangeDetectorRef No
render2 Renderer2 No
elem ElementRef No

Methods

ngAfterViewInit
ngAfterViewInit()

AfterViewInit lifecycle hook.

Returns : void

Properties

initializeEvent
Type : EventEmitter<any>
Default value : new EventEmitter<any>()

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);
  }
}
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""