+1 - seems like ngInit fits well for that purpose (and works too).

On Thursday, January 16, 2014 4:36:52 AM UTC+4, 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.

Reply via email to