mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs: bind 'occupation' property to UserComponent (#54935)
added the binding of occupation property which was missing in UserComponent Co-authored-by: Sonu Kapoor <sonukapoor@users.noreply.github.com> PR Close #54935
This commit is contained in:
committed by
Jessica Janiuk
parent
9ad4ed13bd
commit
493c1922bf
@@ -26,6 +26,15 @@ When you are ready to pass in a value through an `Input`, values can be set in t
|
||||
class AppComponent {}
|
||||
</docs-code>
|
||||
|
||||
Make sure you bind the property `occupation` in your `UserComponent`.
|
||||
|
||||
<docs-code header="user.component.ts" language="ts">
|
||||
@Component({
|
||||
...
|
||||
template: `<p>The user's name is {{occupation}}</p>`
|
||||
})
|
||||
</docs-code>
|
||||
|
||||
<docs-workflow>
|
||||
|
||||
<docs-step title="Define an `@Input` property">
|
||||
|
||||
Reference in New Issue
Block a user