ng-init doesn't work for me.. http://plnkr.co/edit/Yg7Xc6?p=preview
On Thursday, 16 January 2014 06:06:52 UTC+5:30, Michael Hopper wrote: > > Why not just use ng-init? For example: > > <div ng-init="name = 'Mike'" ng-include="'partial.html'"></div> > > > On Tuesday, December 17, 2013 11:54:08 AM UTC-5, Denis Pshenov wrote: >> >> Take a look here for a simple solution: >> http://stackoverflow.com/a/20639139/220086 >> >> In short: >> >> <div ng-repeat="name in ['A']" ng-include="'partial.html'"></div> >> <div ng-repeat="name in ['B']" ng-include="'partial.html'"></div> >> >> <script type="text/ng-template" id="partial.html"> <div>{{ name }}</div> >> <script> >> > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
