0
votes
4answers
43 views

calculate the sum of values in ng repeat Angularjs

I am new to Angularjs. I am displaying list of items using ng-repeat. how to calculate the sum of it? is there any simple method to calculate it in html using expression? name numberofyears amount ...
0
votes
1answer
20 views

Select Option set default value from list if value match using angularJS

I have html. <select ng-model="user.role" class="form-control" name="role" > <option value="">Select Role</option><option ng-repeat="role in roles" ...
0
votes
2answers
31 views

How to add image in dropdown in angularjs

I am working on dropdown with image in angularjs, i tried many solution but havent get any success. My combo data is coming in json format with three elements id , image and value. These dropdown ...
0
votes
1answer
30 views

Initiate dynamic form values within ng-repeat

Trying to figure out how to update my dynamic form process to angular. Pre-angular I would pass a function into the template context. Within a jade loop I would pass the values into the function ...
0
votes
1answer
42 views

AngularUI view not updating after model changes

Beginner question on AngularUI updating a view after the model changes. I have a list of recipes and each recipe has a list ingredients. After a $http GET for ingredients, my nested loop isn't ...
0
votes
2answers
24 views

:first-child with ng-repeat

I have an ng-repeat and only want to apply a style to the first div with the class type in the ng-repeat. <div class="my-list" ng-repeat="item in list"> <div class="type"> ...
0
votes
2answers
18 views

ng-class-even not applying class

So I'm trying to zebra stripe my ng-repeat so the rows can be easily distinguished. I think I have everything wired up correctly, but the classes just aren't being applied. I've created a plunker ...
0
votes
0answers
8 views

items are cramped on top of each other when using angular-masonry directive to create layout

Am using angular in this simple search results page and instead of adding jquery masonry for layout and deal with timing issues I decided to give this directive a try since it plays nicely with the ...
1
vote
2answers
21 views

How to show part of text, and then click to show the rest in AngularJS

I have some text rendered through AngularJS. It's rendered this way: <div>{{itm.Comment}}</div> What I need to do is to show the first 40 characters of the text, and then there should ...
0
votes
0answers
5 views

How to do pagination in tree-grid-directive?

I am using following ‘tree-grid-directive’. https://github.com/khan4019/tree-grid-directive Is there any way to do client/server side pagination in tree-grid-directive? Or Is this support ...
1
vote
1answer
26 views

how to access json data with special character in key in json in angular js

I want to access data with key name as [Measure].[item0] as the key names and when i access this in my html it gives error like json is ine format "[Measure].[item0]":"45" my code for accessing this ...
2
votes
1answer
31 views

Error in fetching records in angularjs

I am Trying to make code for fetch records in angularjs but didn't get any solution please help me <div ng-app="" ng-controller="customersController"> <ul> <li ng-repeat="x in ...
0
votes
0answers
30 views

AngularJS scope data not displaying on partial html

I am facing one weird scenario while using angularJS. [new to AngularJS] I am calling one function from my index.html which is defined in controller.js. <li><a ng-click="casualShirts()" ...
2
votes
1answer
17 views

Angular JS Multiple filter with single ng-model / input

How to make a single Search to filter multiple objects value ?? For e.g: if i search '1' OR 'one' then the result should come........ I've tried it so far: HTML: <input type="text" ...
0
votes
1answer
38 views

Angular Ng-repeat setup

I'm trying to use ng-repeat and ng-show to split up data into two columns <div class="col-md-4"> <div class="row" infinite-scroll="eventSearchService.getMoreEvents()"> <div ...
-1
votes
1answer
21 views

ng-repeat on a multi-dimensional array/object

I am getting json object from an external url. $http.get('http://dev-newsbackend.gotpantheon.com/articles') .success(function(data, status){ $scope.articles = data.articles; ...
0
votes
1answer
18 views

ng-repeat binding with ng-model seems broken in AngularJS 1.3 but works in 1.2

I was trying to upgrade my project to use AngularJS 1.3 (RC0 as of writing) but a portion of my code that works in 1.2 but doesn't seem to work at all in 1.3. Unless I misunderstood the concept of ...
0
votes
2answers
28 views

AngularJS - Calculating length of JSON array

I have a set of JSON data and within it, i am trying to calculate the length of an array (Infos): My JSON: "Association": { "Items": [ { "AssocName": { ...
-1
votes
3answers
45 views

angularjs filter on nested objects

I am quite new with angularjs so I am not sure if what I am trying to do is the right way. Basically I want to display in my page a nested object, and a filter, this way the user can easily type ...
0
votes
1answer
16 views

Update directive's template on controller's variable change - angularjs

What I'm trying to do is to get a JSON object from a $http request, requested inside a controller, and build a directive that displays the multiple objects in the JSON object in a grid. The problem ...
0
votes
1answer
25 views

AngularJS directive for accessing ng-repeat scope of child

Okay, so let me start off saying that I have a directive that creates a JQueryUI tab setup with a backing field that populate the tab name and the tab contents basically. <div ...
0
votes
1answer
14 views

Filtered Dropdown (using select) With Accumulated Totals (ng-repeat)

Hoping someone might be able to shed some light on my problem. I have an AgularJS dropdown list that displays a number of Users. Depending on what user you select, it will show some data which is ...
0
votes
1answer
31 views

AngularJS: how put correct model to repeated radio buttons

I think I have some sort of special code here as all I could google was "too simple" for my problem and it also didn't helped to come to a solution by myself, sadly. I got a radio button group of 2 ...
0
votes
1answer
28 views

ng-repeat over custom directive with isolate scope

I though that this might be a duplicate of this question, except that I'm not using primitives in my code. I have a directive that I'm using to place inline svgs dynamically into my view. It works ...
0
votes
1answer
44 views

Non convoluted method to add a new line after ng-repeat

How do you define what's being put after (or between) ng-repeat elements? Clearly instead of <div> ...
0
votes
1answer
73 views

Create a list without ngRepeat

I would like to create a directive, that does not need ngRepeat, because there is some additional functionality on the directive, that doesn't play good with ngRrepeat. This is my directive with ...
1
vote
1answer
43 views

Pass parameter to Angular ng-include

I am trying to display a binary tree of elements, which I go through recursively with ng-include. What is the difference between ng-init="item = item.left" and ng-repeat="item in item.left" ? In this ...
1
vote
1answer
42 views

CSS-Center alignment for image in a carousel ng-repeat

I am using carousel for image display but I would like to cater it for all types of image dimension a user upload. I resized all images before displaying it in a carousel but i cant seem to make in ...
0
votes
1answer
51 views

How do you toggle an active state ng-class in an ng-repeat item using ng-click?

<ul> <li data-ng-repeat="image in images" data-ng-click="toggle = !toggle" data-ng-init="toggle=false"> <img data-ng-class="{'active' : toggle}" src="" /> </li> ...
0
votes
3answers
34 views

Angularjs ng-repeat doesn't update when the model changes

I Have this code in my project. I try to add data from database using $http, but ng-repeat doesn't update de table, only shows a blank row. When I check the scope, data is already there. I've read ...
0
votes
1answer
20 views

Execute Callback in Angular View?

I have a generic directive for tables that spits out some values based on some properties, for instance: <tr ng-repeat="item in table.data"> <td ng-repeat="column in table.columns"> ...
1
vote
1answer
33 views

Angularjs boolean

I have two requirements, From the Json object I need to display Male for M and Female for F and Yes for bool 1 and No for bool 0 in ng-repeat (AngularJS) like <tr ng-repeat ="object in ...
0
votes
1answer
28 views

Get sum of Object key values in ngRepeat

I'm trying to get the sum of the 'amount' key for all the objects in an ngRepeat loop. I'll need to also filter that sum based on another key which represents the person who spent that amount, 'name'. ...
0
votes
2answers
39 views

Multiple parameters angular filter inside ng-repeat

I'm trying to make a filter inside a ng-repeat based on a custom filter that receives two parameters. At the same time, one of those parameters is one property of the object on the repeat. So in my ...
0
votes
0answers
12 views

Through AngularJs not able to update data in repeater , it updates whole data of Repeater Rows on button click of each row in repeater

Refer Below code:I have list of records in Repeater Control which contains Admin, Patient and customers records. In each row i have a button which gets data based on Admin,Patient and customers Id and ...
0
votes
1answer
13 views

NG-repeat Filter By two ranges

I want to show all events a month, something like this: Enero: event1, event2, event3 Febrero : Event5, event6......... I am getting the information in a json in this format events = [{ Name: ...
0
votes
1answer
28 views

Simple way to search (filter) multiple items within ng-repeat table? AngularJS

I am trying to find a simple way to make a search more in-depth by allowing multiple things to be searched. i.e. If I was searching for cars, instead of just typing "Honda", I could type "Honda, ...
0
votes
1answer
19 views

How can I apply styling to active/hover states within ng-repeat

I have been at this for a day or so now and just can't figure out what needs to happen. I am using ng-repeat to generate a tabbed list of links that is displayed in a simple nav bar. This nav bar is ...
0
votes
1answer
24 views

How do I set the index on ng-repeated item for a ng-click?

I have an gallery image with thumbnails. When I click on a thumbnail, I want the main image to show the thumbnail index with it's full image. How do I add ng-click to get the current index? ...
0
votes
1answer
16 views

Filter on date not working in angularjs

Given the data to filter: $scope.friends = [ { "name": 'John', "phone": '555-1212', "age": 10, "name-phone-age":now.setMinutes(now.getMinutes() + 30) }, { "name": 'Mary', "phone": ...
3
votes
1answer
43 views

angularjs ngRepeat table, get height wrong

I have a problem of getting a ngRepeat table's height when page loaded I'm trying to get the height when event $viewContentLoaded fires, but the table's height equals the height of the title bar of ...
0
votes
3answers
25 views

How to get values from nested ng-repeat

ng-repeat="question in questions" {{$index+1}} ng-repeat="option in question.choiceBeanList" {{questionObj.questionId}} --> Here I have to get both data's My question is how to get data in the ...
1
vote
1answer
31 views

AngularJS ng-repeat ng-selected select box

<select class="input--select" ng-model="updatemember.client_company_id" ng-change="updatestreet()"> <option ng-repeat="company in companies" ng-value="company.id" ...
0
votes
2answers
33 views

Angularjs - Pagination appear after search filter

I am newbie on AngularJS. Search result can be displayed in one page but why the next and previous button is showing ? http://jsfiddle.net/2ZzZB/1473/ <input type="text" id="txtNotessearch" ...
0
votes
2answers
23 views

AngularJS - single controller for ng-repeat-start and ng-repeat-end

I have this HTML: <table> <tr ng-repeat-start="client in clients" ng-controller="ClientCtrl"> <td ng-click="toggleExpand()"> Expand </td> <!-- some ...
-1
votes
1answer
21 views

Error Load dynamic data ng-repeat

Guys I have a problem I must be doing something wrong most do not know, it seems that google chrome organizes json at render time or angle that makes the 'ng-repeat'. And when I load the data in the ...
0
votes
3answers
26 views

How to reuse angular-js common mark up (e.g. widget) without requesting external page?

I have a common logic to render collection of complex items: <div class="left-sidebar" <div ng-repeat="item in items1"> //Complex rendering mark up here </div> ...
0
votes
1answer
27 views

ng-repeat filtering data by date range

I'm trying to filter a list that contains a timestamp by typing a range of dates for example: JSFIDDLE html <div ng-app="tst"> <div ng-controller="MyController"> ...
0
votes
0answers
27 views

Angularjs: What's the correct ways to get correct offsetTop value when page load

Problem: I Cannot get correct top offset value of DOM element when page just loaded. The project I'm working on needs to get the offsetTop value of several DOM element when the page just loaded. ...
0
votes
1answer
27 views

how to use ng-repeats in ng-repeat with ng-if

I am trying to do following but it's not working. <div ng-repeat="a in ar"> <div ng-repeat="b in br"> <div ng-if="a.num == b.num">{{b.type}} </div> ...