I finally figured out the solution:

<td><input type="checkbox" [ngModel]="pipeline.isCompleted" onclick="return 
false;" /></td>






On Tuesday, May 30, 2017 at 8:32:01 AM UTC-7, [email protected] wrote:
>
> So in my case I want the checkbox to be read-only, thus the addition of 
> the onclick="return false;" bit.
>
> The problem is that ng-model="pipeline.isCompleted" is not correctly 
> presetting each checkbox's state.
>
> Robert
>
>
> On Monday, May 29, 2017 at 10:42:58 PM UTC-7, Sander Elias wrote:
>>
>> Hi Robert,
>>
>> did you try:
>> <td><input type="checkbox" ng-checked="pipeline.isCompleted" 
>> ng-click="pipeline.isCompleted 
>> = ! pipeline.isCOmpleted" /> {{ pipeline.isCompleted }}</td>
>>
>> Regards
>> Sander
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" 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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to