angular/packages/core/schematics/migrations/inject-flags
Joey Perrott 9a27c5befb build: rename defaults2.bzl to defaults.bzl (#63384)
Use defaults.bzl for the common macros

PR Close #63384
2025-08-25 15:45:46 -07:00
..
BUILD.bazel build: rename defaults2.bzl to defaults.bzl (#63384) 2025-08-25 15:45:46 -07:00
index.ts refactor(migrations): simplify integration of tsurge migrations into the CLI (#60386) 2025-03-14 14:44:26 +01:00
inject_flags_migration.ts refactor: support arbitrary stats/metrics in tsurge (#61272) 2025-05-14 11:05:55 +02:00
README.md

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 });
}