mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00: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:
parent
9ad4ed13bd
commit
493c1922bf
1 changed files with 9 additions and 0 deletions
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Reference in a new issue