For class differences use ng-class as Sander points out. If you want 
different templates all together use ng-switch:

<div ng-repeat="item in items" ng-switch on="item.postType">

     <div ng-switch-when="regular" class="col-md-4">my regular template 
here</div>
     <div ng-switch-when="featured" class="col-md-12">my featured template 
here</div>
     
</div>

Cheers

On Thursday, March 13, 2014 8:20:23 AM UTC-4, Sathish VJ wrote:
>
> Is there a way to use different html templates within ng--repeat based on 
> the value of the array items.
>
> Assume I'm showing something like Google plus posts in the browser and am 
> using Bootstrap3 grid.  For a regular post I occupy a small grid (col-md-4) 
> but if it is a featured post I want it to be on its own row with a 
> col-md-12.  The internal How would I do this in Angular?
>
> thanks
> Sathish
>

-- 
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