angular - How to get component properties from main component in Angular2? -


been scratching head crazy on this.

basically want in index.html like:

<app hero="iron man"></app> 

in main index.html file, able read value of hero in component class.

been @ week, no avail. here's non-functioning plunkr:

http://plnkr.co/edit/fnonsg0jmbwscsbi4kbt?p=preview

thanks time , response! unfortunately, in scenario you're still not retrieving properties of object, you're putting second object inside first , retrieving properties.

good news though else trying figure out, it's confirmed bug!

https://github.com/angular/angular/issues/1858#event-305799002


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -