I have a form and a view that shows data from that form. I want to separate form and view (which will be more that one).
Here is my code:
<div data-ng-controller="dataController" class="container">
<div data-ng-view></div>
<div ng-include="templates.simple" scope="data"></div>
</div>
And the included view shows initial data good, but does not react on any data change. How do I fix it?
data
is and object with some fields.
templates.simple
is a scope variable with template url
Code example: http://plnkr.co/edit/ibrsBaq8osYuEODGiM6O