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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -