mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Removes all `moduleId:` property references in `@Directive` and `@Component`. PR Close #49496 |
||
|---|---|---|
| .. | ||
| BUILD.bazel | ||
| index.ts | ||
| README.md | ||
RemoveModuleId migration
As of Angular version 9, the moduleId property has no effect. This migration
removes the field from all @Directive or @Component decorators.
Before
@Component({
moduleId: <..>,
template: 'Works',
})
export class MyComponent {}
After
@Component({
template: 'Works',
})
export class MyComponent {}