mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Updates the dynamic-compiler test to be compatible with the APF v13. As of v13, the packages no longer come with metadata.json files and now need to be processed with the babel linker plugin. This commit sets up the linker plugin, and switches away from the deprecated systemjs approach to a simpler rollup code-splitting variant. PR Close #43431
19 lines
321 B
TypeScript
19 lines
321 B
TypeScript
import {NgModule} from "@angular/core";
|
|
import {Component} from '@angular/core';
|
|
|
|
@Component({
|
|
selector: 'lazy-component',
|
|
template: 'Lazy-loaded component!',
|
|
jit: true
|
|
})
|
|
export class LazyComponent {
|
|
constructor() {
|
|
}
|
|
}
|
|
|
|
@NgModule({
|
|
declarations: [LazyComponent],
|
|
jit: true,
|
|
})
|
|
export class LazyModule {
|
|
}
|