mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs: add downgraded output kebab-case example (#35581)
PR Close #35581
This commit is contained in:
committed by
Miško Hevery
parent
7dbbe24ccf
commit
375aa7399d
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user