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