UNPKG

@evan.network/ui-angular-core

Version:

The angular-core operates as an global and central library for the evan.network Angular 5 frontend development. Using this project you will be able to to the following things:

52 lines (51 loc) 1.78 kB
import { ApplicationRef, ElementRef, AfterViewInit, OnInit, OnDestroy } from 'angular-libs'; import { EvanCoreService } from '../../services/bcc/core'; import { EvanRoutingService } from '../../services/ui/routing'; /**************************************************************************************************/ /** * Generic evan.network Angular 5 featured DApp bootstrap component. * - helpers for dynamic routing configurations for dynamic parent routes * - registers referenceApplicationRef for correct deleting later * * Usage (in every featured dapp module): * imports.push(IonicModule.forRoot(BootstrapComponent, { * mode: 'md' * })); * * @class Component BootstrapComponent */ export declare class BootstrapComponent implements OnInit, AfterViewInit, OnDestroy { private applicationRef; private core; private elementRef; private routingService; /** * check if the component was destroyed before ngAfterViewInit to remove the element within * ngAfterViewInit */ private isDestroyed; /** * ionic app parent element */ private ionAppElement; /** * Is the current browser allowed? */ private supportedBrowser; /***************** initialization *****************/ constructor(applicationRef: ApplicationRef, core: EvanCoreService, elementRef: ElementRef, routingService: EvanRoutingService); /** * checks dynamic routing definitions and resets the actual configuration to * take the correct ones */ ngOnInit(): void; /** * supply applicationRef to referenceApplicationRef */ ngAfterViewInit(): void; ngOnDestroy(): void; /** * Remove the ionAppElment from parent */ removeNativeElement(): void; }