mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
All components, directives and pipes will now use standalone as default. Non-standalone decorators have now . PR Close #58160
15 lines
289 B
TypeScript
15 lines
289 B
TypeScript
import {NgModule, Component} from '@angular/core';
|
|
|
|
@Component({
|
|
selector: 'lazy-component',
|
|
template: 'Lazy-loaded component!',
|
|
jit: true,
|
|
standalone: false,
|
|
})
|
|
export class LazyComponent {}
|
|
|
|
@NgModule({
|
|
declarations: [LazyComponent],
|
|
jit: true,
|
|
})
|
|
export class LazyModule {}
|