Skip to content

Commit 05762b9

Browse files
devversionAndrewKushnir
authored andcommitted
refactor(localize): ignore code duplication error with compiler package (#51500) (#51558)
The localize package intentionally duplicates some logic from the compiler to avoid adding a dependency. This is now an error in the packaging rule to prevent common pitfalls/code duplication. Here it's an explicit decision though so we mark it as such and ask for the check to be ignored for the particular import. PR Close #51500 PR Close #51558
1 parent 0d9fd6d commit 05762b9

File tree

8 files changed

+211
-255
lines changed

8 files changed

+211
-255
lines changed

aio/content/examples/router/src/app/app-routing.module.10.ts

Lines changed: 0 additions & 61 deletions
This file was deleted.

aio/content/examples/router/src/app/app-routing.module.8.ts

Lines changed: 0 additions & 24 deletions
This file was deleted.

aio/content/examples/router/src/app/app-routing.module.9.ts

Lines changed: 0 additions & 31 deletions
This file was deleted.

aio/content/examples/router/src/app/app.component.3.ts

Lines changed: 0 additions & 43 deletions
This file was deleted.

aio/content/examples/router/src/app/app.component.4.ts

Lines changed: 0 additions & 15 deletions
This file was deleted.

aio/content/examples/router/src/app/app.component.8.html

Lines changed: 0 additions & 26 deletions
This file was deleted.
Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
<h2>Heroes</h2>
22
<ul class="items">
3-
<li *ngFor="let hero of heroes$ | async">
4-
<!-- #docregion nav-to-detail -->
5-
<!-- #docregion link-parameters-array -->
6-
<a [routerLink]="['/hero', hero.id]">
7-
<!-- #enddocregion link-parameters-array -->
8-
<span class="badge">{{ hero.id }}</span>{{ hero.name }}
9-
</a>
10-
<!-- #enddocregion nav-to-detail -->
11-
</li>
3+
<li *ngFor="let hero of heroes$ | async">
4+
<!-- #docregion link-parameters-array -->
5+
<a [routerLink]="['/hero', hero.id]">
6+
<!-- #enddocregion link-parameters-array -->
7+
<span class="badge">{{ hero.id }}</span>{{ hero.name }}
8+
</a>
9+
</li>
1210
</ul>
1311

1412
<button type="button" routerLink="/sidekicks">Go to sidekicks</button>

0 commit comments

Comments
 (0)