mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
ee578d3e86
Format all md files
Remove InjectFlags migration
Replaces the usages of the deprecated InjectFlags symbol with its non-deprecated equivalent,
for example:
Before
import { inject, InjectFlags, Directive, ElementRef } from '@angular/core';
@Directive()
export class Dir {
element = inject(ElementRef, InjectFlags.Optional | InjectFlags.Host | InjectFlags.SkipSelf);
}
After
import { inject, Directive, ElementRef } from '@angular/core';
@Directive()
export class Dir {
element = inject(ElementRef, { optional: true, host: true, skipSelf: true });
}