Skip to main content
1 vote
1 answer
47 views

Pre-checked inputbox are not being serialized [duplicate]

I have a simple code that list many colors and check if some has been chosen previamente by user(this is setted on code but in really its come from the database). When i submit the form, the pre-...
Jefter Rocha's user avatar
0 votes
1 answer
514 views

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 ...
Jenna Leaf's user avatar
  • 2,512
-1 votes
1 answer
192 views

Ng-Checked with ng-repeat without using for loop in angularjs

Can anyone help to figure out ng-checked $scope.ABC=[{ID:23,NAME:zz},{ID:65,NAME:tt},{},{}] <table> <thead> <tr> <th>ID</th> <th>Name</th&...
Devesh Khosla's user avatar
2 votes
1 answer
69 views

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 ...
Harish's user avatar
  • 1,273
0 votes
0 answers
77 views

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-...
Gabriel Sule's user avatar
0 votes
0 answers
76 views

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 ...
Abaij's user avatar
  • 883
0 votes
2 answers
212 views

Trying to check if a value is undefined to control setting of ng-checked

I have a problem setting ng-checked to true for checkboxes based on whether a value is undefined or not. For example in the following code.. <input class="custom-checkbox form-control" id="{{ ...
mikeym's user avatar
  • 6,581
0 votes
1 answer
2k views

Checkbox need to be checked based on string values

I am fetching data from LocalStorage as follows angular.module('madMeApp').controller('campaignInDetails', function($scope) { var campaignToShow = JSON.parse(localStorage.getItem("CampaignDetails"))...
Ajeet's user avatar
  • 58
0 votes
1 answer
184 views

AngularJS Need to bind parent checkbox with child without using ng-model

I got an User list using ng-repeat via an API call. For every User their is 5 categories and each category got 2-3 authorizations on true/false. For every user/category/authorization I want a ...
MouMou's user avatar
  • 41
0 votes
2 answers
11k views

ng-checked='true' not working

Template - 1 <ul> <li> <label><input type="radio" ng-checked="true" /> One</label> </li> <li> <label ng-click="ctrl.goToTwo()"><input ...
Richa's user avatar
  • 4,270
1 vote
0 answers
805 views

Angular JS : Selecting first radio button in dynamic data set

I have an array of objects over which I do orderby:"Attribute A" ,iterate over it using ng-Repeat and set ng-checked="$index === 0 ? true : false". Now on same data on click Attribute B U do orderby :...
Groovy's user avatar
  • 57
0 votes
1 answer
663 views

What is difference in ways of setting radio button checked=true in AngularJS

If I set radio button default selection using ng-checked="$first" then it got checked. If I use ng-checked="true" radio button doesn't get checked? Kindly explain when this can happen? I cant use $...
Groovy's user avatar
  • 57
1 vote
1 answer
318 views

ANGULARJS: Function I have in ng-checked directive runs infinitely

Trying to do something I thought is pretty simple but it's turning out to be pretty annoying. I'm just trying to have a function that runs when you click on a checkbox using the ng-checked directive. ...
amacdonald's user avatar
1 vote
1 answer
1k views

How to make a input disabled by default using angular directives

How do I make a textual input field disabled by default and have it toggled using a checkbox. I am getting the checkbox to toggle the input field between an enabled and a disabled state but I cannot ...
Courtney's user avatar
  • 339
1 vote
4 answers
115 views

Values are not automatically assigning in checkbox

I have a checkbox to show deactivate account , when check box is selected in request I need to send activationstatus as false for showing deactivate account and when unchecked it should pass value as ...
Nicoleta Wilskon's user avatar

15 30 50 per page