Skip to content
This repository has been archived by the owner on Jan 13, 2021. It is now read-only.

Missing ng-checked for booleans in form #4

Open
michelnl opened this issue Apr 28, 2015 · 1 comment
Open

Missing ng-checked for booleans in form #4

michelnl opened this issue Apr 28, 2015 · 1 comment

Comments

@michelnl
Copy link

There is an issue with the checkboxes in form.html.

< input ng-if="item.type=='boolean'" ng-visible="item.readable" ng-enabled="item.writable"
type="checkbox" class="form-control" placeholder="{{item.name}}"
ng-model="taskDetailed.propertyForSaving[item.id].value" style="width:16px;">

with ng-checked it will show when true or false:

< input ng-if="item.type=='boolean'" ng-visible="item.readable" ng-enabled="item.writable"
type="checkbox" class="form-control" placeholder="{{item.name}}"
ng-model="taskDetailed.propertyForSaving[item.id].value" style="width:16px;" ng-checked="{{item.value}}">

@savicprvoslav
Copy link
Contributor

Awesome, than you for this! I will add it in the code.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants