Tagged Questions
0
votes
1answer
23 views
Both drop down auto selected using AngularJS when second DD is depend on first
I have data in table in that there are list of cities .when I click on update on same form data is fill-up into fields.I want that both my drop down,Country and Sate should be auto selected from ...
1
vote
1answer
33 views
Bootstrap multiselect is not working when i bind the data from response in Angularjs
Bootstrap multiselect is not working when i bind the data from response in Angularjs
angular.module('ngvalueSelect', [])
.controller('ExampleController', ['$scope','$http', function($scope,$...
0
votes
0answers
44 views
How can i use checkbox to select the multiple values, inside Select box in AngularJS?
I'm using ng-options to lad my values inside the select box. At the same time, I want to select multiple values. How can I do that using checkbox?
Note: multiple is not my option. I need it to be a ...
1
vote
0answers
34 views
How to manuplate path in JSON using AngularJS?
I want to create a new file inside a file. How can I achieve that?
Below I'm getting the files and their paths and I can access them
<div ng-repeat="t in main.path" style="padding:10px; float:...
-3
votes
1answer
21 views
How to send the path using Angularjs?
I'm getting the path of the files in ng-repeat. When I click on each file i should send the same path back to backend. so the new files should be updated by refreshing the div.How can i acheive that ?
...
0
votes
2answers
40 views
how to add response data to $scope object to use in ng-repeat
Hello all i was trying to get response from $http.get method and append it to $scope object but it was stating undefined. After some research and referencing found the way to assign the data to object....
0
votes
1answer
24 views
How to bind data to scope object that i can use it in ng-repeat
I am getting a response from the server and due to async behavior I instantiated scope object first before the call and used it in method. I am getting the response in self-object but unable to bind ...
0
votes
0answers
15 views
For i elements run myApp.controller from angular JS framework using dynamic data per each iteration
How to iterate through elements having angular controllers and use dynamic data for each of the controllers? My code bellow populates all controllers items using ng-repeat directive with same last ...
0
votes
1answer
38 views
Angularjs Select values are getting removed from ngModel after being added programmicatically
I am using Angularjs with select2. I have a multiselect box that gets populated based off the values selected in another dropdown. I use an click event on a button for fire a method that adds a list ...
0
votes
1answer
32 views
ng-file-upload is not working properly with each element in ng-repeat
I am trying to upload multiple files for each object in ng-repeat in an array.But when I try to upload files for 2nd/3rd object(other than the first element) in the Array, all the files getting ...
1
vote
3answers
33 views
Object changes inside array but stays unchanged on page
I have a table which is made by ng-repeat. That part which doesnt get refreshed is below;
<tbody class="defTbody" ng-repeat="activity in activityList track by activity.ActivityID">
<tr ...
0
votes
1answer
39 views
Calculate the total of prices in angularjs
I am newbie in Angular. I am trying to print the gross total of the products in the bill. While calculating the product total, the value of qty is given by the user. The code for calculating product ...
0
votes
3answers
67 views
Dropdown not updating based on scope value angularjs
I have been working on some functionality over last few days.
Whenever I select a dropdown, index values needs to be captured. At the same time, when I click remove button, one TV should be removed ...
0
votes
0answers
17 views
Unable to select the values in md-optgroup
I have a md-optgroup and here is the html
<md-input-container flex class="md-icon-float md-block no-margin-bottom md-select-align">
<label id="...
0
votes
2answers
81 views
angularjs ng-repeat not updating after adding new data in ionic v1
ng-repeat is not updating after adding new data and updating the $scope with new data. Here in my case user will add new address and it will return to the home view here the ng-repeat data is not ...
0
votes
1answer
52 views
Recursive tree template including ng-click with multidimensional index as parameter
Good evening,
Is there any way to create a template that recursively shows a structure and has an onclick function on every item. This onclick function needs the current index including all parent ...
-4
votes
1answer
118 views
Angular JS 1 : multiple-date-picker time change
I am new to AngularJS and trying to implement multi date time picker functionlity with one check box .
I am using multiple-date-picker
multiple-date-picker
and here I am trying to change the time ...
0
votes
0answers
55 views
Set value back to scope in directive after Bootstrap modal closed
I'm implementing a small page to create Invoice. In invoice, I have an invoice details array. It could be represented like this
invoice = {
userName: "Mr A",
invoiceDetails:[{
location: "0,0"
}]
}
I ...
1
vote
3answers
44 views
how to add filter in angular within array
i have following record i want filter in ng-repeat by name i enter but its but not working please help me this
ng-repeat="contact in vm.contacts | filter: {name: vm.chatSearch}
"userlist": [
...
2
votes
1answer
92 views
AngularJS - Bind filter with toggle button
I have a list of people with true/false skills and I would like to filter the data with buttons related to each skill.
I create the toggle buttons for each skill when I click on it, and I create the ...
2
votes
2answers
38 views
Filtering not working in transcluded DOM content
I am building two AngularJS (version 1.6.5) components and I am not able to get filtering working when I use transclusion.
The first component is a simple container which uses transclusion to ...
1
vote
1answer
72 views
Finding scope inside ng-repeat for ng-click
I have a very complex nested angular object.
Now at the end of the object ng-click didn't work.
I read on how angular scope works, and I get that ng-click create a child scope for each item in the ...
0
votes
0answers
58 views
AngularJs filter out everything except one that has been clicked
So I am trying to using following code to pull up records from Json FIles
JSON FILE 1: Names of labels of details Json File 2:Product details
Following shows my code:
<div id="filters" class="...
-1
votes
1answer
68 views
ionic1 angular js ng-repeat | filter : search not working?
angular.module('starter.services', [])
.factory('Chats', function($http) {
// Might use a resource here that returns a JSON array
// Some fake testing data
var chats=[];
$http({
...
1
vote
1answer
117 views
How to make unique ng-model in ng-repeat
I want to make each test(ng-model) like test1, test2 unique in below code..
<div ng-repeat="item in Array">
<div>{{item.Name}}</div>
<a ng-click="openClose(test)>show/hide&...
0
votes
0answers
19 views
Ng-repeat recurring element cannot be clicked
I added a click event on an element with ng-repeat
The odd thing is that only clicking on the last element in the ng-repeat loop is valid
This is the data that comes out
enter image description ...
1
vote
1answer
118 views
Ng-Repeat and ng-table issue
I'm new to Angular JS. The below Code is not working. I have tried with data table with Ng-Repeat. But It just showing the table without any sorting, pagination option.
Response Data looks like:
[{
...
0
votes
1answer
67 views
Add multiple object in angularjs scope variable
I'm working on Galleries and Pictures. I'm using Flask, AngularJS, MongoDB (and mongoengine). I displayed all my object thru an API.
I got 2 kinds of objects:
- Galleries objects define by id:int, ...
0
votes
3answers
59 views
ng-repeat Return empty rows
I tried with below code, but it is returning an empty row (more than 30+) of the table.
json
"[{\"COMPANY_ID\":\"1\",\"COMPANY_DESC\":\"11\",\"COMPANY_CURRENCY\":\"1\",\"ACTIVE\":true,\"...
1
vote
1answer
36 views
How to set default value in a html dropdown which is created using ng-options
I am developing a single page web application where a form input generates a result table, which i populate from a json array which is received from back-end spring controller in form's submit ...
1
vote
2answers
184 views
Undefined $http data when resolved with `.then` method
I used the console log which returned the array of data fetched from the server, but when I call the scope on the html I get an undefined error on the console.
app.service('blogpostservice', ['$http',...
1
vote
1answer
215 views
Single select Check box inside nested ng-repeat
Please take a glance to the demo plunkers for details.
Demo Plunker
Example1
The html of Example1 looks something like this
<tr ng-repeat="class in Classes">
<td>{{...
1
vote
1answer
259 views
Display json data using angularJS custom directive
I am new to angularJS and creating a sample for displaying the json data as mentioned below using angularJS directive:
<div ng-controller="myController">
<div my-attribute="String1"...
-1
votes
2answers
88 views
search suggestion functionality with angularjs not working
I am trying to run the below code on my system but not able to get the result. but same code i was running on js fiddler it was running.
this my index.html
<div ng-app="myApp" ng-controller="...
0
votes
1answer
77 views
how to call a function under ng-repeat?
I am using angularjs 1 and node js for my project.
Here I am displaying products using ng-repeat.Each product I have an option to share in social networks. I need to get the share count of each so I ...
0
votes
4answers
902 views
Ng-repeat not updating after set variable scope value in $http.get
In my AngularJS project, I have a select HTML element, that should be bound with the states of Brazil. So, I'm using a ng-repeat to populate the states, that are loaded from my project database, using ...
0
votes
3answers
413 views
Pass form validation as a parameter for ng-click method angularjs
I'm creating multiple forms using ng-repeat and I want to pass every form validation as the second parameter of vm.validate function. It works well when ng-change is triggered but not when I press ...
1
vote
1answer
146 views
How to iterate over 2 scopes with ng-repeat
If I have 2 scopes that share a common Person code value, can I link them in the view perhaps using ng-repeat? I suppose what I'm trying to do is something similar to nested for loops.
I'd like to ...
1
vote
1answer
38 views
Dynamically creating DOM, in angularjs
Please see the below code -
<!DOCTYPE html>
<html>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
<body ng-app="myApp" ng-...
1
vote
0answers
341 views
Again: ng-click not working inside ng-repeat inside ng-if
This is most likely going to be another Angular scope question. I looked hard for a solution on SO, however, nothing I found would solve my problem.
I am using Angular.js together with Swiper.js. ...
0
votes
1answer
302 views
AngularJS 1.x Display one item at a time in ng-repeat, click on next should display next item and so on
I am developing a quiz web application, where I have to show 100 question in total across 3 different tabs (Math, GK, English), the questions are getting filtered using angular filter. But each tabs ...
1
vote
1answer
348 views
Using nested ng-repeat with dynamic ng-model as object
Okay let me be honest as i am a beginner in angular i am not sure how to frame this question i will try my best to explain this question.
Pic 1 :
As you see in the above pic i have a situation ...
0
votes
2answers
81 views
Why isn't my JSON data showing up in AngularJS?
I've hit a wall at this point. My json file is connected (I verified in the Chrome console), but it's not showing up on my services.html page. What am I doing wrong? In troubleshooting my issue, I put ...
1
vote
1answer
91 views
angularjs ng-repeat renders after for loop
It does not matter how large your for loop is, AngularJS doesn't render anything to HTML unless the loop has finished. But it should render to HTML as $scope changes (as happens in two-way data ...
1
vote
1answer
106 views
How does the ng-click=function() works inside ng-reapeat? Does it created multiple references of scope function?
I have a ng-repeat over 2000 employees data which is displayed in rows and inside each repeating row/block, I have a function which is passing salary information to directive for some processing. I am ...
0
votes
1answer
729 views
Angular 1.5 component inside ng-repeat, template function run just once
I tried to use angular component replacing directive for creating component (a data table).
I want to use the component inside of ng-repeat like:
<div ng-repeat='item in items'>
<my-...
0
votes
2answers
99 views
AngularJS update data in ng-repeat from http request
I searched for solution but I didn't found an answer. What is my problem, on my category view I have init function which makes http request and get all category from database. I use that records and ...
0
votes
2answers
231 views
i am calling ajax when button click event ng-click but ng-repeat does not load
i was call ajax button click and ng-repeat does not load data one click but when i clicked two times its load, i don't know why please check code
$scope.myData.doClick = function (item,event) { ...
2
votes
2answers
289 views
ng repeat on a array to filter a key on another object to get the associated value and use watch on that value
Let say i have a object called,
scope.rec = {a: 2, b: 3, name: a,b};
And i split the "name" key like scope.x = scope.rec.name.split(","); then scope.x will become an array.
Now i need to iterate ...
1
vote
2answers
115 views
how to reload ng-repeat when i clicked button asp.net (angularjs)
How would you pass data code to angularjs variable. its working fine when the page loads. But when I click the button, for filter data. The server side does not load data.
$scope.studentinformation ...