Thanks, I tried this
 
<input type="checkbox" id="{{a.id}}" ng-value="a.id" 
ng-model="newblog.checked">
 
The problem is, newblog.checked when checked returns true, how can I make 
it return a.id?
 

On Monday, March 31, 2014 4:33:02 PM UTC+1, Gordon Bockus wrote:

> Hi,
> Does you data have a property that indicates the checked-ness of the 
> checkbox for that row?  If so I think you could just add 
> ng-model="row.checked" to your ngRepeat and be in business (this assumes 
> row is the value of your ngRepeat).  If it's more complex then that I'd add 
> a plunker to show the use case.
>
> Gordon
>
> On Monday, March 31, 2014 3:57:08 AM UTC-5, cutey Love wrote:
>>
>> Hi,
>>  
>> I have .query pull in some data and then  output a list of checkboxes 
>> onto the page with ng-repeat.
>>  
>> What I need to do is make some of the checkboxes checked, but how can I 
>> do that?
>>  
>> I need a way of saying if this checkbox that's outputted id == XNumber 
>> then add the ng-checked property, but im not sure how to do this?
>>  
>>  
>>
>

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