mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
docs: add downgraded output kebab-case example (#35581)
PR Close #35581
This commit is contained in:
parent
7dbbe24ccf
commit
375aa7399d
1 changed files with 2 additions and 0 deletions
|
|
@ -539,12 +539,14 @@ of multiple words. In Angular, you would bind these attributes using camelCase:
|
|||
|
||||
<code-example format="">
|
||||
[myHero]="hero"
|
||||
(heroDeleted)="handleHeroDeleted($event)"
|
||||
</code-example>
|
||||
|
||||
But when using them from AngularJS templates, you must use kebab-case:
|
||||
|
||||
<code-example format="">
|
||||
[my-hero]="hero"
|
||||
(hero-deleted)="handleHeroDeleted($event)"
|
||||
</code-example>
|
||||
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue