Sets the checked attribute on the element, if the expression inside ngChecked is truthy.
Questions tagged [angularjs-ng-checked]
44 questions
81
votes
7 answers
AngularJS: ng-model not binding to ng-checked for checkboxes
I referred to this before asking this question: AngularJs doesn't bind ng-checked with ng-model
If ng-checked is evaluated to true on the html side, the ng-model is not updated. I can't ng-repeat as suggested in the above question because I have to…

Abilash
- 6,089
- 6
- 25
- 30
11
votes
4 answers
ng-checked and ng-change radio button not work together - angularjs
http://plnkr.co/edit/RP9SpO1qGjn5Ua6pZJ3D?p=preview
js
angular.module("sampleapp", []).controller('samplecontroller', function($scope,$rootScope) {
$scope.radii = [
{id:.25, checked:false, name:"1/4 Mile"},
{id:.5, checked:false, name:"1/2…

webmandman
- 317
- 2
- 4
- 11
3
votes
1 answer
AngularJS ng-checked isn't updating checkbox when model changed in javascript
I have a filtered list of objects being repeated with ng-repeat with an input checkbox beside each item. When the list isn't filtered (as it is when the page is loaded) then I don't want the checkboxes checked. If the list is filtered I do want the…

ac66
- 49
- 1
- 7
2
votes
1 answer
Not able to get the passed argument in ng-checked function
I called a function in ng-checked to check of the current checkbox's value is 'test' or not if it is checked then the checkbox should be checked or else the checkbox should be unchecked
To achieve this I passed this.value as an argument for show…

Harish
- 1,193
- 6
- 22
- 45
2
votes
2 answers
All the checkboxes inside a ng-repeat are getting checked when I select just one
I have list of objects named rolePermissionList like this:
[{"id":1,"name":"createUser","type":"user","marked":1},{"id":2,"name":"deleteUser","type":"user","marked":1},{"id":3,"name":"editRole","type":"role","marked":0}]
and I use ng-repeat to…

Bill_Data23
- 659
- 2
- 14
- 30
2
votes
0 answers
ng-checked/ng-model prevent change to model when user clicks checkbox
I'm building a simple form with a toggle. I want to bind the toggle to my model, welcomeEmail.welcome_email_on. When I click the toggle, I want to call toggleWelcomeEmail() in my controller. This function will check if the new state is true or false…

Daniel Bonnell
- 4,817
- 9
- 48
- 88
2
votes
2 answers
angularjs checkbox ng-checked not working
I have the following code :-