dependencies Legend  Declarations  Module  Bootstrap  Providers  Exports cluster_AppModule cluster_AppModule_declarations cluster_AppModule_imports cluster_AppModule_bootstrap AppComponent AppComponent AppModule AppModule AppComponent->AppModule AppComponent AppComponent AppModule->AppComponent LazyRenderModule LazyRenderModule LazyRenderModule->AppModule

File

playground/index.ts

Declarations

Bootstrap

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { Component } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';

import { LazyRenderModule } from 'angular-lazy-render';

@Component({
    selector: 'app',
    template: `<lazy-page>
                <lazy-block>section-0 first render</lazy-block>
                <lazy-block>section-1</lazy-block>
                <lazy-block>section-2</lazy-block>
            </lazy-page>`
})
class AppComponent {}

@NgModule({
    bootstrap: [AppComponent],
    declarations: [AppComponent],
    imports: [BrowserModule, LazyRenderModule]
})
class AppModule {}

platformBrowserDynamic().bootstrapModule(AppModule);

results matching ""

    No results matching ""