1
vote
2answers
44 views

Angularjs Show and Hide Button within ng-repeat

I have a list which populates a screen using ng-repeat. Each row has a button for the user to click on to select the row. Typically what you would use a radio button for but the user wants a button ...
1
vote
1answer
29 views

Why is the Angular filter running twice?

So here is some simple sample code I setup from an example today while I was learning Angular. jsFiddle link Couple questions: How does it know to run categoryFilterFn. I'm guessing anything ...
0
votes
1answer
10 views

XML converted to JSON with AngularJS, how to render the result with leading '@' on values?

Here's the front end display and I've tried writing out {{calcs.@city}} which blows up with AngularJS errors so it doesn't appear to like the @ symbol. </div> <div ...
0
votes
2answers
14 views

Generate dynamic form input fields and collect field data in an array

I am stuck with this little task. I need to generate form input fields dynamically by clicking 'add' button on the form. The form is supposed to create DB table schema. So every input field is a DB ...
1
vote
2answers
25 views

AngularJS: ng-repeat for a specific “ID”?

first of all, I'm quite new to angularJS, so be gentle! Second, I know there are no "ID"s, "class"es etc. in angularJS so the title might be somewhat misleading. However, I failed to describe the ...
0
votes
1answer
22 views

AngularJS impossible to use ng-repeat

I'm becoming nuts with this issue... I have a node.js/express environment with the following files: app/controllers.js 'use strict'; /* Controllers */ angular.module('myApp', []) ...
0
votes
0answers
13 views

ngRepeat animation on orderBy - not all elements are animated

I have some problems with the usage of animations on ngRepeat. Indeed, when used along with the orderBy filter, not all the elements are animated. Here is an example: ...
0
votes
0answers
25 views

angularjs ng-repeat causing issues in ie9

I built this jsfiddle to demonstrate the issue that I'm having: http://jsfiddle.net/6q3ER/ There are 2 copies of the same control in this page, one outside the repeat (as the control) and one in the ...
0
votes
1answer
35 views

Get ng-reapeat's $index in javascript (code behind)

How can i get the actual value of $index from code behind? My html is: <div class="list-group nav nav-stacked"> <a ng-repeat="data in dbdata | orderBy:'heading' | ...
0
votes
2answers
32 views

AngularJS - link and methods not working in nested ng-repeat

I have a popup that shows items with ng-repeat, but inside the ng-repeat the links are not working, neither methods. Here is the html code <div class="skills-container"> <i class="fa ...
0
votes
1answer
13 views

How do I use the date filter in angularjs to remove invalid dates

I am using angluarjs date filter as follows to get short date: seniority date {{e.cntySnrDte | date : short}} and it works perfectly; however, is there a way to to put a phrase "unavailable" instead ...
0
votes
1answer
39 views

AngularJS - Binding radio button selection to model inside ng-repeat

I have a data model persons which takes the following form: personsInfo = { name: Adam dob: 31-FEB-1985 docs: [ { docType: ...
0
votes
1answer
27 views

angularJS -Change in variable visible between html links

I have this code: <li ng-repeat="objekt in driversList" class="mix {{objekt.Objekt.Type}}"> <a href="objekttest.html" data-ajax="false" ng-click="objekt.Objekt.Active='yes'"> ...
0
votes
0answers
19 views

AngularJS - displaying data in a suitable form for a timetable

I am new to angularJS and am trying to display data collected from a db in the following form for a timetable: |Mon |TUE |WED |Thu | |28/04/14 |29/04/14 |30/04/14 |01/05/14 | | ...
0
votes
0answers
38 views

Angular is taking too much time while using ng-repeat

We are using angularjs for our html5 app we have over 300 message and we want to print all the message on single page we are using this code to print all message using data-ng-repeat directive ...
0
votes
0answers
14 views

Data-bound input returns undefined even though data is present

In my application (a shopping cart) there is an input field that a user enters a numeric value into. This triggers other databound inputs to recalculate their values. At seemingly random intervals, ...
1
vote
1answer
33 views

Filtering through nested ng-repeats with custom filters

It seems like custom filters is what I'm going after here. There's a specific behavior I'm looking for when filtering out elements. I'm looking to make a unified search bar to return entire matching ...
1
vote
3answers
27 views

Angularjs how to set the default value for select

I have the following object: defaults = { 0 : { id : 10, value : "string 1" }, 1 : { id : 22, value : "string 2" } } I want to iterate over this object and display it as a ...
0
votes
3answers
44 views

How to use ng-repeat with in the templateURL of directive?

I created a directive to display the "dropdown". Following are the code i used HTML <km-sselect km-left-title="Left" km-right-title="Right" km-model="sdsd" ...
0
votes
1answer
25 views

Angular ngRepeat object deep, performance

I have complicated json object (more then 100 items) and I need to run with ngRepeat directive over some values and show only one value. Complicated object $scope.complicatedList = [ { "id": ...
2
votes
2answers
87 views

AngularJS: traversing nested arrays

I am working with a nested array with the structure... $scope.items = [{attr1: val1, attr2: val2, items: [{ attr1: val1, attr2: val2, items: [{ ... }, ...] }, ...] ...
0
votes
2answers
39 views

How can I increment the class names using ng-repeat?

I set up an ng-repeat to rollout a bunch of elements from a JSON file however I would like each element to have a incremental class name .item-1, .item-2, .item-3. <div ...
0
votes
1answer
34 views

AngularJS using ng-repeat value outside of repeat block and in script tag

I am new to angularJS and am struggling with an issue. I've searched extensively for an answer and tried a few dirty hacks as well, but I still cannot resolve the issue. I have a ng-repeat directive ...
0
votes
2answers
37 views

Display details of selected options in Angularjs

I am new to learn AngularJs. How to display adSet details of selected options? Here is my app.js file : app.controller("AddCompaignCtrl", function($scope){ $scope.status = ['active', ...
0
votes
1answer
22 views

$index is not working inside of ng-repeat

I have the following ng-repeat HTML code: <group ng-repeat="group in groups" groups="groups" group="group"></group> Which works great for me at generating the groups from my object. The ...
0
votes
1answer
51 views

Angular using ng-repeat to show hide

i am new to angular and trying to incorporate it within my application. So far i have been able to set up a simple ng-repeat-start/end which is working as expected. The issue i am facing is that ...
0
votes
1answer
21 views

How do I set default value of select box in directive

I have some trouble with my directive. I load the data about a user in which role it is. I want to do that when loading controller is selected which is attached to the user's role. I try to ...
1
vote
1answer
23 views

AngularJS - ng-repeat inside of ng-grids cellTemplate

Given the following data set: { "url": "www", "words": [ { "name": "fish", "count": 1 }, { "name": "pig", "count": 60 ...
0
votes
1answer
19 views

Upgrading Angular version

I have a web application using angular v1.1.5 and i am trying to update this to v.1.2.9. I have downloaded v1.2.9 and the corresponding route.js file however when trying to run my application, i am ...
0
votes
0answers
8 views

Modifying an old Angular library to use newer components

I am using angular version 1.1.5 in my application. I would like to make use of ng-repeat-start/end however i know this is do get introduced until v.1.2. The reason i am resisting to move to version ...
0
votes
1answer
12 views

Insert function output in ng-repeat?

I have such a piece of html code (Jade notation) tr(ng-repeat="item in List"): td b {{item.Id}} td {{item.TypeId}} ...
1
vote
2answers
62 views

AngularJS dynamic list of filters

I have a list of products. Each product has three properties: mustBuy, promotion (both booleans) and productName. What I'm trying to do is to apply one filter at the time, based on the user input. If ...
0
votes
0answers
43 views

Having issues sending scope to the template in AngularJS

MY issue is this: When I request the data from the server this sent the data correctly but in LoginController after doing the validation I'm trying to populate the user's username and email but those ...
0
votes
1answer
25 views

Programmatically scroll ng-repeat with overflow:hidden

I'm using the following markup (JADE) to build a pagination with AngularJS and Foundation. ul.pagination li.arrow: a &laquo; li(ng-repeat="month in months | orderBy:'_id'" ...
0
votes
2answers
41 views

AngularJS - Creating a new row when using ng-repeat

Im using a simple ng-repeat to generate a list of countries and their corresponding data. Within each list is a hidden row that can be expanded and collapsed. Im struggling to get this hidden row to ...
0
votes
1answer
22 views

AngularJS - ng-repeat to assign/generate a new unique ID

Im using a simple ng-repeat to generate a list of countries. Within each list is a hidden row/div that can be expanded and collapsed. The issue that i am facing, is that before i introduced Angular ...
1
vote
2answers
43 views

checkbox is not clickable within nested ng-repeat

To get an idea of the setup I’m using in my application I set up this simplified example: <div ng-controller="Ctrl"> <ul> <li ng-repeat="oConfigEntry in ...
0
votes
1answer
38 views

ng-if inside ng-repeat not working as expected

I have a repeater that I'm using to return views into an accordion. I'd like to conditionally load the views, so I'm wanting to add an ng-if condition on the repeaters elements to check and see if ...
0
votes
1answer
26 views

How to generate html markup based in json property value in AngularJS?

I got json (model property) like this: [ {type:'a', val:'something'}, {type:'b', val:'something'} ] Based on value of 'type', i need to render different html markup. I know i can accomplish it via ...
0
votes
1answer
42 views

AngularJS ng-repeat x times dynamic

Preface: <input type="tel" ng-model="people" placeholder="6" maxlength="2"> </label> <ion-item> ...
0
votes
0answers
39 views

AngularJS: use jquery with multiple ng-repeat

I recently posted a question concerning the possibility of different scroller div with the same class name. It works perfectly. Here is the link of the thread: Scroll multiple div at the same time ...
0
votes
2answers
37 views

Angular - Unable to load view

I'm trying to get my head around how to load a view into a dynamic template on page load. My application has different templates based on device width. Currently the template is loaded without issue ...
0
votes
2answers
18 views

AngularJS.. http.get working, when splitting into its own service module its no longer working

I am new to angular and trying to integrate it within my application. In my first version i used a simple $http.get to a .JSON file, which was successful. The $http.get was originally in my ...
0
votes
1answer
24 views

execute function after ng-repeat finishes with hidden elements

here is the situation, i have this code <div data-ng-repeat="question in questions" data-ng-if="cQuestion == $index + 1" class="question-animate"> {{question.question}}-{{$index + 1}} ...
0
votes
0answers
36 views

Select text in nested ng-repeat in protractor

I have a nested list of suggestions below a search box that looks like this: <div class="type-row clearfix" data-ng-class="suggestion_type.klass" data-ng-repeat="suggestion_type in ...
0
votes
2answers
48 views

ng-repeat loop more than the number of elements

I am trying to implement ng-repeat with ng-style. It works perfectly. However, I do not understand why my method is called more than the number of elements in my ng-repeat! Do you know why? To ...
1
vote
0answers
16 views

NivoSlider isn't working with base64 images loaded by AngularJS

When I use the nivoSlider with static images, it works like a charm: <div class="slider-wrapper"> <div id="slider" class="nivoSlider"> <img src="img/someimage.jpg" ...
1
vote
0answers
51 views

AngularJS ng-repeat - http.gs retrieving data, but not displaying

I am new to angular and trying to integrate it within my application. I am attempting to use a simple $http.get to a .JSON file, which displaying the matching contents in a ng-repeat Here my get: ...
0
votes
2answers
29 views

Adding extra elements conditionally with ng-repeat

I'm using Bootstrap and want to create rows of content, with each row containing three columns, where each column's content would represent one object in ng-repeat. It would look like this: <div ...
0
votes
1answer
16 views

ngInfiniteScroll is being called more than it needs to

I have the following unordered list that uses ngInfiniteScroll: <ul class="list-group" infinite-scroll="loadMore()"> <li ng-repeat="post in posts | filter:search" class="list-group-item ...