Sets the checked attribute on the element, if the expression inside ngChecked is truthy.
Questions tagged [angularjs-ng-checked]
44 questions
1
vote
1 answer
conditional radio button angularjs
I am trying to get radio button checked or un checked based on flag status, though it is alsways checked for first radio button ffor below code
1
vote
4 answers
Populate an input when checkbox is checked from ngRepeat
I'm trying to populate an input two ways. The first method is to simply type an amount into the input, which works perfectly. The second method (which I'm struggling with) is to check the checkbox generated within the ngRepeat directive.
The…

Christian Hill
- 378
- 1
- 3
- 17
1
vote
1 answer
while using ng-repeat, how to set ng-checked true if a value exist in another angular array?
// array of already assigned districts
$scope.already_assigned = [{"zone":"1","district":"2"}];
// array of all districts
$scope.all_districts = [{"districtId":"1","districtName":"All…

Thiyaga Raj
- 105
- 3
- 12
1
vote
0 answers
multiple input radio inside multiple ng-repeat doesn't get checked with ng-checked
I'm creating a table where each cell will have multiple radio buttons.
See screenshot:
I'm creating the options dynamically and I want to check the radio button for each cell based on data that I have before hand.
What I'm doing is to ask for…

asumaran
- 977
- 1
- 8
- 16
1
vote
1 answer
AngularJS: ngChecked not working
I have the following radio button:
I have double checked poll_post.poll_option_id and option.id are equal. So the…

Tarun Dugar
- 8,921
- 8
- 42
- 79
1
vote
1 answer
when i close the modal, checked inputs became unchecked
i use input with checkbox type to narrow my search result;
problem is i put the checkboxes in to the modal and when i checked many of them and close the modal the checked inputs become unchecked .
and i want every time that i open the modal input…

Amir Rezvani
- 1,262
- 11
- 34
1
vote
2 answers
How to select checkbox based on another checkbox state in AngularJs?
Below is my scenario.
I have 2 checkboxes named A & B which are inside the ng-repeat element. The possible states of these 2 checkboxes are
When A is truthy, B can be either truthy or falsey
When A is falsey, B can never be truthy.
Below is my…

Karthik
- 1,064
- 2
- 16
- 33
1
vote
2 answers
Angularjs ng-checked behaviour not consistent
I am using angularjs, and theres a edit view for one form, where I am trying to bind the previously used values. Below is my code/HTML. I am also using typescript for this and controller as format.
HTML:

Chaitanya Gadkari
- 2,669
- 4
- 30
- 54
1
vote
2 answers
ng-checked not working along ng-change and ng-model
I have a checkbox which has to be checked only if a property is false. I have the next html:

Cristina
- 55
- 9
1
vote
1 answer
How to use ng-model and ng-checked together for radio buttons, inside ng-repeat
I am trying to fetch Roles data(JSON) from a url and using ng-repeat to assign it to radio buttons(shows list of roles) and display it in MODAL. Any one option must be selected for the role currently assigned to the user.
When a user changes the…

Amit Kumar
- 591
- 2
- 8
- 24
1
vote
1 answer
Radiobuttons ng-checked not displaying div by default and works only onclick
I'm new to web development with Angular js. I'm trying to show and hide a textbox inside a div using class. I have two radio buttons "Yes" and "No". So, I'm trying to show the div containing the textbox when I click on Yes and hide when I click on…

user3004356
- 870
- 4
- 16
- 49
0
votes
1 answer
How to set checkbox ng-checked from server data using AngularJS and save the checked/unchecked back to server data?
This should be a very common problem, invoking an ng-model to parse the data into form (DOM) after which the modified checkbox's ng-checked will be translated back to data values so to be saved back on the server.
I have two check boxes…

Jenna Leaf
- 2,255
- 21
- 29
0
votes
0 answers
Angularjs checkbox in ng-repeat does not have a value
I have the following problem: I have a parent checkbox and other children. If I use the ng-model parent, in the ng-check they are checked, until there it works ok.
When wanting to know if the ng-change attribute has changed, I do not get results…

Gabriel Sule
- 373
- 6
- 17
0
votes
0 answers
Call a function with ng-checked inside a ng-repeat got error 10 $digest() iterations reached
I want to call a function in ng-checked inside a ng-repeat loop, so I type ng-checked="isActive('{{item.id}}')". What I expect is if ng-checked returns true, the checkbox is checked. But somehow I get this error with unlimited…

Abaij
- 853
- 2
- 18
- 34