javascript - Pass in isolated scope object into angular custom directive template? -


i'm having trouble figuring out how use object in angular template in custom directive. here's plunker explain kind of trouble i'm having.

after fiddling around came conclusion need use scope: {address: '='} in order pass in object directive's template instead of scope: {street: '@'} used street value. throwing parsing error, , not displaying address's country correctly. can explain i'm doing wrong here? i've looked @ dozens of examples can't quite figure out how fix it.

here's simple working example of i'm trying achieve reason can't replicate this

remove double braces around object.

<address-b address="user.address"></address-b> 

Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -