0
votes
0answers
30 views

Trying to return a single object from an array of objects angularjs

I make a get request which returns an array of objects. I want loop through the array and return one single object to the view based on the name property of that object. I have tried to use ng-repeat ...
0
votes
1answer
10 views

Angular Directive template to array in a controller function

Here is the directive directives.directive("unitDirective", function(){ return { templateUrl: "../html/directives/unitDir.html" } }); Here is the template <div ng-repeat="unit in ...
0
votes
0answers
17 views

Is there a way to create a single watcher on a property used in each item in ng-repeat?

I am displaying various properties of a list of items. I have an option to enable showing each property: <div ng-repeat person in list> <div ng-if="options.showName"> <span>{{...
-1
votes
1answer
16 views

angular js The ng-model name looks like 'choice.gorntu'. I want pz1, pz2 etc. to be written in ng-model part

enter image description here The ng-model name looks like 'choice.gorntu'. I want pz1, pz2 etc. to be written in ng-model part. I did not get it. My English is not very good. html <div ...
0
votes
0answers
13 views

Angular Filter with | filter{datatype:object.properties} is not seeing any data when adding this filter

I am used to writing custom filters and now that I been banging my head with ng-options in the dropdowns I was switching to ng-repeat within selects Seems that when I add in a filter like this below ...
0
votes
2answers
17 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) { ...
1
vote
3answers
56 views

Using ng-repeat to generate select options

controller: $scope.send_index = function(event, val){ console.log(val); $scope.variable = 'vm.areas['+val+'].name'; console.log( $scope.variable ); }; and this is in the view: <...
1
vote
2answers
22 views

Get ng-model with index from ng-repeat in controller

I can't find the answer to this over google so i post my question here : I need to send an http.post request to a php file based on inputs value that I get from a ng-model directive in my view but ...
0
votes
1answer
37 views

Cannot pass object to component in Angular using ng-repeat

I am building application using Angular 1.6 component based approach.I have an "article" component which contains a "block" component, and I want to pass data from article to block in ng-repeat loop, ...
2
votes
2answers
44 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 ...
0
votes
1answer
32 views

How to iterate over an array stored in an object using ng-repeat

I make a call to an API endpoint which returns a single object. I want to loop over an array named video stored in the object and return all the links stored in the array to the view. JSON object ...
0
votes
0answers
17 views

AngularJS Three Order of rowspan dynamically

I am a beginner in AngularJS. I need to do Three order of rowspan dynamically. I have referred the below URL: AngularJS Third Order Nested Table Structure But still it is very difficult to make it ...
0
votes
0answers
34 views

How to reload data in ng-repeat when button clicked 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 ...
1
vote
2answers
46 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 ...
0
votes
0answers
35 views

call a function in ng-reapeat with ng-init/ng-bind angular js

I need to show penDing circle with canvas in each section of ng-repeat using canvas drawing function in jquery. please help me how to call jquery method in angular element load with dynamic canvas id ...
0
votes
1answer
19 views

Angular. ngAnimate. Animate the block in which it is itself

I have ng-repeat, and in each line there is a button (Info) that should hide the whole table (tableSpeVis). The problem is that the button does not react in any way if it is inside the block that ...
0
votes
1answer
19 views

How to update scope on form Submit, when ng-model value changes?

I am creating an edit customer form and passing an object of 30 key value pairs. I am then using ng-repeat to populate input fields of a form. All form is displayed nicely and with passed key, values....
0
votes
0answers
53 views

Create nested drop down list based on parent selection

I have an issue for creating nested drop down controls at UI should be run time. Sample JSON data provided below. Should be multiple levels up to 10. JSON [{ "name" : "Device", "...
0
votes
0answers
32 views

AngularJs: not ordering numbers correctly

I have a problem when ordering my list in ng-repeat, is sorting, however, the numbers from 1 to 9 are in dozens positions for example: 89 9 90 91... I'm ordering like this: Ng-repeat = "object in ...
0
votes
0answers
48 views

How to sort ng-repeat by some arrays?

I have the following: $scope.filterObj = {"status":["active"],"categories":["u"]} And object that I need to sort: {"categories" : ["u", "a"], "status" : "active"} I tried to filter this as: <...
0
votes
0answers
37 views

Angular passing object as value in ng-repeat (instead ng-options)

I got curious problem: I'd like to pass option ng-value as an reference to object so ng-model="vm.selectedItem" will keep whole current option. I noticed that ng-options creates value like: value:...
2
votes
1answer
28 views

How to repeat directive with different step condition

I have an array of objects. I want to display two object per row. Something like: <div class="row" ng-repeat="twoObject in objects> <div class="col-sm-6">{{twoObject(1).name}}</...
0
votes
4answers
44 views

Angularjs ng-repeat array value

myCtrl.Data.summary.account if i print above model i get the output like below ["1","2","3","4","5"] i want to use ng-repeat on this value, how to achive this? I tried following code snippet using ...
0
votes
0answers
19 views

Nested ng-repeat for navigation with materializecss, dropdown menu does not appear

I am using materializeCSS with angular for a multi-page website, and currently attempting to use a single JSON file to help generate many pieces of info such as navigation, and then when clicking on ...
0
votes
0answers
26 views

Ng-repeat on wrapper of multiple options inside <select> cause the options to receive null

so what I want to accomplish is populating a select element with a recurisve json, like so: [{ "siteId": 1, "name": "Test 1", "siteTypeId": 2, "childSites": [ { "siteId": 3, "...
0
votes
2answers
19 views

How can data be filtered in a html table with filter in each column seperately using Angular JS?

I want to use some text box in a dropdown or so beside each column header for text input for searching in that particular column as in for ID or Name. <div> <table class="table"> ...
1
vote
1answer
33 views

Multiple filter with same value Angularjs

I have an JSON object like this $scope.list = [{ "ID": 1, "Name": "NAME1", "Category": "Category1", "Code": "Code1" }, { "ID": 2, "Name": "NAME2", "Category": "Category1", ...
1
vote
1answer
67 views

AngularJs ng-repeat make new <div>

I'm trying with angularjs ng-repeat to print buttons on but for now I have like this where 2nd and 3rd button are out of div, but I would like to have in this way where the second and third ...
1
vote
1answer
32 views

How to loop over array values using AngularJS?

I want to display array value using ng-repeat, and i will call getimage function with itemid and photoidlist to get image url. My json is: $scope.productslist = { "json": { "response": { ...
0
votes
2answers
47 views

how to create dynamic inputs using ng-repeat and $index

I am trying to iterate over array of questions. But I need to attach radio button answers to each question. In this case I need to add different ng-models for each answer. I tried the code below but ...
0
votes
3answers
74 views

How to access the items with square braces using ng-repeat in angularjs

I can't access some items in nested collection. The array: $scope.myArray = { "pm_id": 2, "type": "Scrum", "estimated_end_date": "Wednesday, March 15, 2017", "no_of_sprints": 2, "...
0
votes
0answers
29 views

Updata ngRepat data from the $http service: Angularjs

How to update the data in ngRepeat. I am loading the data from $https service and showing only 10(1st 10 by default) objects out of 1000 using limitTo. created a next button which will be showing ...
0
votes
0answers
33 views

how to sort the table in mean stack angularjs

I am using angular I need to sort the table now its sorting but its only sorting depends upon pagination .I want sorting over all the data from all pagination . anyone help!!!! <a href="" ng-...
0
votes
1answer
37 views

using custom filter in angular js 1.6.2

The below snippet was working perfectly with angular 1.4.2, however after upgrading the angular js library to 1.6.2. I have searched the migration/upgrading docs..etc. Not found a solution. HTML ...
0
votes
3answers
48 views

Angular Based Filter system using for individual data using multiple checkbox

var app = angular.module('test',[]); app.controller('testController',function($scope){ $scope.users = [ { 'name':'person1', 'sales': true, 'customer': false, 'vip': true }, { 'name':'...
0
votes
2answers
70 views

Filter not working ng-repeat

I'm using Salvattore (masonry like grid) in my angular app but the filter option in ng-repeat does not work. I think it's because Salvattore wraps each repeated item in a separate div to make a grid (...
0
votes
1answer
30 views

Angular ng-repeat refresh from WebApi2 response.data

I have created an angular function where a get data from from a WebApi. This function get data in json format with an $http.get call. Then I receive data from into response.data object. ...
0
votes
1answer
23 views

Salvattore grid stopped working after adding angularjs

When I added angularjs to my project, Salvattore grid stopped working, it's not rendering. I want to use ng-repeat functionality to loop through all the items and display them in Salvattore grid. ...
1
vote
2answers
57 views

How to add multiple ng-repeats inside a ng-repeat?

Okay, I'm working with a bit of a challenging grid here and need some help. I need to find a way to populate the data by ng-repeat. I'll attach an image of the grid layout of what I'm trying to ...
0
votes
1answer
46 views

Setting ng-model dynamically inside ng-repeat with radio button not working, when same with input type=“number” working properly

I am using ng-repeat where I have to put ng-model in dynamic way. Code is as follow; <div class="panel panel-default" ng-repeat="(key, value) in $parent.shared.sourceSchema"> <div class="...
-1
votes
1answer
50 views

How to ng-repeat element's attribute?

I'm using an external script to rotate thumbnails (http://sladex.org/images-rotation/). <div ng-repeat="entry in entries"> <div class="thumbs rotation" data-images="['{{entry....
0
votes
6answers
45 views

How can i string value bind in ng-repeat in angularJS

here is my code, $scope.records = "test,Test1,Test2,test3,test4"; i want to bind this value in li tag with ng-repeat.need ouput like as .test .Test1 .Test2 .Test3 .Test4
0
votes
0answers
17 views

Scope variable is not getting mapped into drop down even though html shows selected='selected'

This is the desired output i was trying but instead i am getting blank value My Scope Variable returns the below one:- $scope.divText = getSavedData; console.log($scope.divText); // Criterion: ...
0
votes
0answers
40 views

Angular Select Box with ngRepeat

I have select drop downs and checkboxes that are inside an ngRepeat which are populated by a locally stored array of JSON objects. I change the contents of the array through a pop-up modal and can ...
-3
votes
2answers
55 views

angularjs ng-repeat array index

How to print (based on array index) all array value? At the moment, it print all the values. <table> <thead> <tr> <td>Name</td> <td&...
0
votes
3answers
39 views

Divide Materialize row into half using ng-repeat

I am creating dynamic forms with angularjs . I have a json structure like this $scope.steps = [ { stepNo: 1, schema: { fields: [ { ...
0
votes
1answer
29 views

Angular and Firebase - How to only display items under one node

Currently, I have a firebase structure that lists projects with items under each project. Currently, the code below displays all the projects. Now when I click on a project it links to the items page. ...
0
votes
1answer
33 views

Inspect all items on ng-repeat

If the first prematchGame has 1 and 2 value ,after that add header , but in this case i have some issue ,,,first element hasn't 1 and 2 value , but 3th and 4th has it . (see on image) How can i ...
0
votes
3answers
48 views

AngularJS: Apply a CSS class on the first element with ng-repeat

I am looking for the first index the passes through my ng-if condition which is not always $index === 0, and cant be solved using $first. Here's my code sample: <div class="ticket-event" ng-if="!...
0
votes
2answers
39 views

Unable to pass dynamic form inputs to the controller function

I want a form to be created dynamically with three inputs each time a new data item is found. Whenever the end user clicks on a particular checkbox the selected field name, other input values ...