Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to display nested object property value #8

Open
birjesh3pillar opened this issue Aug 9, 2017 · 1 comment
Open

How to display nested object property value #8

birjesh3pillar opened this issue Aug 9, 2017 · 1 comment

Comments

@birjesh3pillar
Copy link

I have data like user:[{id:1,name:'xyx',profile:{pic:'abc','role':2}}]. How i will display profile.pic.

@yogendratamang48
Copy link

Not sure about Angular 2, but in Angular 4 it can be done with ng-template
`
<ng-template #dataTableHeader let-item="item">
Role

<ng-template #dataTableCell let-item="item">
{{item.profile.role}}

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants