Skip to content

Commit 43e6fb0

Browse files
crisbetoalxhub
authored andcommitted
feat(core): enable block syntax (angular#51994)
Enables the new `@` block syntax by default by removing the `enabledBlockTypes` flags. There are still some internal flags that allow special use cases to opt out of the block syntax, like during XML parsing and when compiling older libraries (see angular#51979). PR Close angular#51994
1 parent 1beef49 commit 43e6fb0

File tree

50 files changed

+351
-701
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+351
-701
lines changed

aio/content/examples/inputs-outputs/src/app/app.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ <h1>Inputs and Outputs</h1>
1313
<!-- #docregion output-parent -->
1414
<app-item-output (newItemEvent)="addItem($event)"></app-item-output>
1515
<!-- #enddocregion output-parent -->
16-
<h3>Parent component receiving value via @Output()</h3>
16+
<h3>Parent component receiving value via &#64;Output()</h3>
1717

1818
<ul>
1919
<li *ngFor="let item of items">{{item}}</li>

aio/content/examples/inputs-outputs/src/app/item-detail.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<h2>Child component with @Input()</h2>
1+
<h2>Child component with &#64;Input()</h2>
22

33
<!-- #docregion property-in-template -->
44
<p>

aio/content/examples/inputs-outputs/src/app/item-details-metadata.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { booleanAttribute } from '@angular/core'; // First, import booleanAttrib
99
standalone: true,
1010
selector: 'app-item-detail-metadata',
1111
template: `
12-
<h2>Child component with @Input() metadata configurations</h2>
12+
<h2>Child component with &#64;Input() metadata configurations</h2>
1313
1414
<p>
1515
Today's item: {{item}}

aio/content/examples/inputs-outputs/src/app/item-output.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<h2>Child component with @Output()</h2>
1+
<h2>Child component with &#64;Output()</h2>
22

33
<!-- #docregion child-output -->
44
<label for="item-input">Add an item:</label>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<div class="section">
2-
<h2>Child of @Host() Component</h2>
2+
<h2>Child of &#64;Host() Component</h2>
33
<p>Flower emoji: {{flower.emoji}}</p>
44
</div>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class="section">
2-
<h2>Parent of @Host() Component</h2>
2+
<h2>Parent of &#64;Host() Component</h2>
33
<p>Flower emoji: {{flower.emoji}}</p>
44
<app-host></app-host>
55
</div>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="section">
2-
<h2>@Host() Component</h2>
2+
<h2>&#64;Host() Component</h2>
33
<p>Flower emoji: {{flower?.emoji}}</p>
4-
<p><i>(@Host() stops it here)</i></p>
4+
<p><i>(&#64;Host() stops it here)</i></p>
55
<app-host-child></app-host-child>
66
</div>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<div class="section">
2-
<h2>@Optional() Component</h2>
3-
<p>This component still works even though the OptionalService (notice @Optional() in the consturctor isn't provided or configured anywhere. Angular goes through tree and visibilty rules, and if it doesn't find the requested service, returns null.</p>
2+
<h2>&#64;Optional() Component</h2>
3+
<p>This component still works even though the OptionalService (notice &#64;Optional() in the consturctor isn't provided or configured anywhere. Angular goes through tree and visibilty rules, and if it doesn't find the requested service, returns null.</p>
44
</div>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<div class="section">
2-
<h2>@Self() Component (without a provider)</h2>
2+
<h2>&#64;Self() Component (without a provider)</h2>
33
<p>Leaf emoji: {{leaf?.emoji}}</p>
44
</div>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<div class="section">
2-
<h2>@Self() Component</h2>
2+
<h2>&#64;Self() Component</h2>
33
<p>Flower emoji: {{flower?.emoji}}</p>
44
</div>

0 commit comments

Comments
 (0)