530 questions
0
votes
1
answer
308
views
Checkbox to button ngmodel - which way to change my value
I'd like to edit my checkbox so I get a or an input with type=button instead.
I have for now, properly working :
<label>Afficher</label>
<input type="checkbox" ng-model="...
1
vote
0
answers
118
views
Editing form with value = " " to update JSON file ng-model not working
I want to edit fields before updating them to my JSON file.
The following shows the details in the text/number fields (not the dates or select fields) (this is my test run to see if it'll work)
<...
1
vote
1
answer
730
views
Radio button value not updating after angularjs update to 1.8
After AngularJS update to 1.8, once I click and call DayTypechange(2) method, the radio button value does not update. Here is my html:
<div class="btn-group btn-group-sm col-xs-11 col-md-10 ...
0
votes
0
answers
106
views
How to use ng-options and ng-model in an AngularJS custom directive
I'm trying to encapsulate some dropdown list from html code, here is my html code
<custom-dropdown function="foo" data="{{application}}" target="toBeUsedLater"> ...
0
votes
0
answers
59
views
Why is my ng-model updating only once with daterangetimepicker but everytime if i change the input manually in angularjs?
I got a problem i'm currently trying to use daterangetimepicker from http://www.daterangepicker.com/ to select date for stuff. Problem is that when i select a date using it my ng-model is updated only ...
0
votes
1
answer
102
views
Why is my Angular ng-model composite value not updating?
I haven't used JavaScript in six years, so I'm brushing up on it and learning Angular at the same time via W3Schools. This means I'm likely doing multiple things wrong here, so bear with me.
In my ...
0
votes
1
answer
45
views
AngularJs: model object gets converted to an array
I am seeing a weird issue and spending unfruitful time.
In my controller I have an object declared as
$scope.brfdet = { iJobId: $scope.job.iJobId, iAppType: null, dEarlyShipmentDate: null, dStockdate: ...
0
votes
0
answers
44
views
module 'myApp' is not available AngularJS tutorial
I went through all similiar questions, and I didn't find any solution. My code:
test.php
<html xmlns:ng="http://angularjs.org/">
<head>
<script type="text/javascript&...
0
votes
1
answer
661
views
How to disable other options and append values in multiple dropdown with same values in angular js?
I need 3 dropdown list with same values. 1st dropdown is mandatory to select. The rest 2 is optional
all 3 dropdown lists has same options. If user selects a certain option in dropdown 1, it will be ...
0
votes
1
answer
380
views
ng-model not updating the value in jsp page
I am trying to calculate the values : amountBeforeTax taxAmount and amount but my input named : amountBeforeTax is not updating value to $scope.amountBeforeTax in the controller.
Versions :
Angular ...
2
votes
1
answer
470
views
How to [(ngModel)] bind default [selected] <option> 's value in <select> IF user didn't select any option for a <select> in multi filter search bar
the issue is that it is not necessary for all input fields or select tags to be used at the same time to filter, so sometimes users can leave one or several filters without selecting or placing an ...
0
votes
1
answer
89
views
ng-model is not working inside ng-view with global controller
It seems very simple but i could not fix it, my controller can not read ng-model related to input box inside ng-view. here are my codes
main.html
<html ng-app="myapp" ng-controller="...
0
votes
1
answer
72
views
Radio button's data-ng-model/data-ng-change not working with data-ng-repeat
A]
When not used with data-ng-repeat, the radio button's data-ng-change works properly.
Upon changing the radio selected, the function, updatedLanguageTrigger(languageSelected) is called, and the ...
0
votes
1
answer
542
views
Select inside ng-repeat with ng-options and ng-model
Good Morning,
Hope everyone had a great Easter,
Before I begin, I want to point out this is being developed in ServiceNow Orlando release, it uses AngularJS 1.6.10
I'm stuck on a tricky piece of ...
1
vote
2
answers
92
views
Unable to get input field `value` assigned using javascript
I am using Laravel with Angular JS for forms. I got a text box in the form as below
<input type="text" name="removedSiblings" ng-model="form.removedSiblings"
id="div_removedSiblings" class=...
0
votes
1
answer
469
views
How do you use ng-model to take in data from a parent component in AngularJS (version 1.5.5)?
Below is an image of my code's output; I know how to display data passed down from parent components (i.e., 100), but I don't know how to display the parental data via ng-model (i.e., 100 isn't ...
-1
votes
1
answer
451
views
AngularJS: Radio buttons in ng-repeat
I've got a set of radio buttons in a ng-repeat, following what I found in this answer. I just can't figure out how to add an ng-model to it.
<tr ng-repeat="service in selectservice.services ...
-1
votes
1
answer
209
views
I have a class emp with id name and list of technology type i want to fill it with data coming from dynamic textboxes
i want it to be solved in only angular-js.
<head>
@Scripts.Render("~/bundles/AddEmployee")
</head>
<body ng-app="TruModule">
<div ng-controller="...
1
vote
1
answer
855
views
How do I make ng-model-options use dynamic variables?
I am having an issue where ng-model-options isn't reflecting the changes I need it to.
For example, in the snippet below if you enter 4:00 pm into both time inputs you'll see the UTC output is ...
1
vote
1
answer
2k
views
ng-model not updating when value changes
Currently I have two date inputs. I am trying to make the second date input default to the first date input. The user can then change the second date input to be a different value (leaving the first ...
0
votes
0
answers
526
views
Get data attribute value from datalist angularjs
I am currently using a <datalist> for easy lookup. Each <option> in my datalist has a data-sysid attribute which acts as the actual value I need. Currently, I am using ng-model to set the ...
-2
votes
2
answers
1k
views
Keep ng-model in array and set values using loop AngularJs
Scenario
I have scenario where I will parse the document then I will get as a JSON output in key and value format, In key it will contains headings of document and Value will contains corresponding ...
2
votes
1
answer
118
views
How use multiply ng-models in AngularJS
I have textarea with ng-model 'wordset' and ng-change="onChange()"
<div>
<textarea ng-model="wordset" ng-change="onChange()"
class="form-control app-word-set"
...
1
vote
1
answer
50
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-...
0
votes
1
answer
193
views
Changing text of initial blank option in select menu in Angular
I have a select menu with using ng-model and a list of values like so:
<select ng-model="$ctrl.ngModel"
id = "{{$ctrl.idPrefix}}-select"
ng-change="$ctrl.change()">
<option ng-...
0
votes
2
answers
62
views
How update other checkbox from checkbox
I've got a weird behaviour with my checkboxes :
I want to have 9 checkboxes : one for "week", one for "weekend" and 7 for all week days. When I click on "week" I want to set selected monday until ...
1
vote
2
answers
1k
views
Fire ng-change when ng-model updated programmatically inside ng-repeat
I read topics related to this and found following, but still I am stuck.
How to $watch changes on models created by ng-repeat?
I am trying to implement plus, minus counter with following code. Now ...
0
votes
0
answers
63
views
Select Always Returning First Item of List (AngularJS)
No matter what I select, this function only returns the first item of the list. As requested, I have included the complete JS code. I have looked through this code four hours and everything seems ...
0
votes
1
answer
836
views
How to fetch data from dynamically created input textboxes on click of save button in Angularjs
I'm dynamically creating textboxes and save button for each Item and on click of save button I need to fetch value from the text box of that particular item.
for (let d = 0; d <= ItemsInfo.length ...
-1
votes
1
answer
170
views
ng-modal not working for form inside modal [duplicate]
I have a independent modal in a separate file and it's controller in a separate file and the modal is being included in index.html using data-ng-include. But the $scope variable inside the modal ...
0
votes
1
answer
29
views
Angularjs (1.3) - UI element values are cleared (unbound) when once hidden and shown back the div element of current controller from master
In Angularjs values are cleared only for UI components like (input, textarea, button) when I use ng-model to bind them. In the Master page (asp.net), we use two <div> elements, we dynamically ...
0
votes
0
answers
46
views
Angularjs is not updating ng-model value when the value of dropdown/select is being changed
When i am changing my option value of select it's ng-model value is not being changed.
Is this happening because of value is being changed by Jquery?
Because i read a line about angularjs from ...
0
votes
2
answers
237
views
AngularJS possible to click all radio buttons
I create a list of radio button selections, but the problem is that when clicked, they both remain selected, thus not working as a radio button group at all.
I have the same ng-model (a string; '...
0
votes
2
answers
554
views
Datalist putting wrong value in ng-model
I am using Angular 1.6
I have a a text input which is connected to a datalist.
The datalist options are populated through ng-repeat. The value is an "id" but what is displayed is a "name".
The text ...
0
votes
1
answer
452
views
how can I set default value in ui-select
I have tried set ng-init and give the initial value of ng-model, all failed
$scope.newSubItem = function (scope) {
var modal = $uibModal.open({
backdrop: 'static',
templateUrl: '...
1
vote
1
answer
800
views
Set ng-model value from ng-repeat input in angular js?
I am trying to allow the customer to edit a list of items by using ngRepeat and ngModel. But i am not able to set response to the input fields
Here is the code.
<form name="customerupdateForm" ng-...
0
votes
2
answers
47
views
How to manage naming models in the following table
I have the following table:
Lot Table View
I am using three ng-repeat to show the following response.
Response from backend overview
Detailed response from backend
The first ng-repeat is in <tbody&...
2
votes
0
answers
69
views
Asynchronous ng-model and width don't return initial value (Karma-Jasmine)
I'm working on an AngularJS 1.7 project which requires karma-jasmine testing.
I had no problems so far until I tested a component with an ng-model assigned by the controller. I read that ng-model ...
0
votes
1
answer
217
views
AngularJs directive change ngModel with delay & model's value don't match
Ng-change is acting weird in a directive. It seems to have a delay in the digest cycle resulting in the wrong (previous) ngModel value in controller immediately after the change.
ngModel : '='
https:...
1
vote
1
answer
2k
views
Angularjs ng-model in input does not update value in controller
Can anyone explain to me why when I print console.log($scope.inputvalue) the variable is not updated with the values that I enter in the input?
Maybe I just misunderstood the meaning of ng-model, in ...
0
votes
2
answers
246
views
How to access ng-model values outside of ng-repeat?
I have a table that is filled with <input> fields in every <td>, that are repeating in ng-repeat. In some cases some of the inputs may came with null value. I want to access the ng-model ...
1
vote
1
answer
1k
views
Apply parseFloat on ng-model
I am trying to print Float value on the input field using ng-model. But it's not displaying. If I use value instead of ng-model then it's getting displayed.
Here's my code:
<input id="cost" name="...
0
votes
1
answer
521
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 ...
3
votes
1
answer
4k
views
Angular 6 Using Two Shared Module : Component is not a known element:
I have two shared Moduled 'shared-candidate-login-reg.module.ts' and 'shared.module.ts', I am importing both the shared modules in my home page. I want to use 'AlertLblComponent' from my 'shared....
0
votes
1
answer
230
views
AngularJS Matching ng-model for Select and Radio not Syncing
I'm having an issue with my models when attempting to sync similar functionality using a select with ng-options and a radio using ng-repeat. The models and details are all the same, but they're not ...
0
votes
1
answer
1k
views
How to populate a multiple select field with this JSON object to be selected and inserted into another object?
I have a form that I want to add a multiple select input, but I want the select input to be populated with an existing JSON object and allow me to select one of those objects and add it into the ...
1
vote
3
answers
248
views
Form fields are not present in the form object AngularJs
I have form with a few fields, but all fields are present in form object and field with name sector is not present. Why? And how I should fix it?
<form name="candidateForm" ng-submit="submitForm()"...
1
vote
1
answer
49
views
Binding values from ng-repeat in Angularjs
I'm loading data from a database and save it to an array as follows:
$scope.allGroups = [{id: 1, groupName: group1}, {id: 2, groupName: group2}, ..]
In my view, I'm trying to select multiple group ...
0
votes
2
answers
159
views
AngularJS - Unable bind vraiable which name is stored inside another variable with ng-model
Binding variable name having in another avriable at one level is working , but not working with multilevel object. below is example.
var app = angular.module('app', []);
app.controller("...
0
votes
4
answers
440
views
Angularjs ng-repeat filter not working properly with input and ng-model [duplicate]
I'm using AngularJS and I'm displaying a list with ng-repeat. What I'm trying to achieve is to filter the list and only show the items that contain the value that the user writes in the input.
I set ...