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:
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
Post a Comment