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:
ashish-sharma4u 2024-03-19 11:16:49 +05:30 committed by Jessica Janiuk
parent 9ad4ed13bd
commit 493c1922bf

View file

@ -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">