My use case is simple.  I want a directive that has data properties.  I 
want the html/design person to be able to design the template but have 
access to the data properties.  I can't seem to get this use case to work. 
 Can someone enlighten me?  I don't want to put all the properties on the 
main app component -- they belong to child directives (e.g a directive that 
get's its data from a database)

Here's a plunker:  and my scenario: 
https://plnkr.co/edit/JtETTSE0PzDZxfdSZW6U?p=preview

<data-view>
  <div class="yellow">I want a yellow {{title}}</div>
</data-view>

<data-view>
  <div class="large">I want a big {{title}}</div>
</data-view>

In angular1 I used controllerAs syntax and I was golden.  I must be missing 
something.

mike

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to