18 lines
294 B
TypeScript
18 lines
294 B
TypeScript
import {NgModule} from "@angular/core";
|
|
import {Component} from '@angular/core';
|
|
|
|
@Component({
|
|
selector: 'lazy-component',
|
|
template: 'Lazy-loaded component!'
|
|
})
|
|
export class LazyComponent {
|
|
constructor() {
|
|
}
|
|
}
|
|
|
|
@NgModule({
|
|
declarations: [LazyComponent]
|
|
})
|
|
export class LazyModule {
|
|
}
|