mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
9e76468905
Fixes that the block entities migration was only processing top-level classes. Nested classes could come up during unit tests. PR Close #52309
Block syntax template entities migration
Angular v17 introduces a new control flow syntax that uses the @ and } characters.
This migration replaces the existing usages with their corresponding HTML entities.
Usages within HTML starting tags, interpolations and ICU expressions are preserved.
Before
import {Component} from '@angular/core';
@Component({
template: `My email is hello@hi.com. This is a brace -> }`
})
export class MyComp {}
After
import {Component} from '@angular/core';
@Component({
template: `My email is hello@hi.com. This is a brace -> }`
})
export class MyComp {}