0
votes
0answers
2 views

AngularJS - Show a div if date is within last six months

I have a simple ng-repeat that displays a list of names and icons: <div ng-repeat="data in MyData"> <p>Name: {{ data.Name }}</p> <span ...
0
votes
2answers
26 views

get index of ng-repeat inside of ng-repeat

I have a page where An array has an array inside it and is displyed using ng-repeat 2 times. <div ng-repeat="chapter in chapters"> <div ng-repeat="page in chapter.pages"> ...
0
votes
1answer
14 views

AngularJS Trying to use ng-click with ng-switch but ng-switch is not switching my divs

AngNoob here. I have some global navigation that uses the routeProvider to swap out external html pages inside the view. Within the view i set up a list type sub navigation (created with ng-repeat) ...
1
vote
1answer
27 views

ng-repeat absolute $index when using filter

I'm trying to get the absolute $index of the ng-repeat when using the filter. For example I have an array like this: $scope.notes = [ { name: 'note 1', value: '1' }, { ...
1
vote
1answer
17 views

Combining two ng-repeats in a table

I want do use two different ng-repeat loops in a table to kind of group different obejcts with each other but don't know really how to do it. My code right now: ... <tbody> <tr ...
0
votes
3answers
19 views

AngularJs Injector Module Error

i'm new in AngularJs (started an couple hours ago) and i'm trying to complete the AngularJs in 60 minutes'ish tutorial. But i got stucked on the first controllers example. This is my code: ...
0
votes
3answers
29 views

Remove click event on last item in ng-repeat

I have an ng-repeat which looks like the following: <ol> <li class="pointer node-name" ng-click="myClick(node)" ng-repeat="node in myArray">{{node.name}}</li> </ol> This ...
0
votes
1answer
16 views

How do I set multiple unique charts in their own DIVs using an AngularJS directive and Highcharts

First, a HUGE thank you to anyone who can help me figure out how to get this working! I am creating a dashboard which shows several main containers. Inside these containers are smaller ones with ...
0
votes
2answers
19 views

ngRepeat with Table: Change a cell's display text

I have a list of mails which I want to show in a grid (<table>). Some of these mails have attachments. For their corresponding rows, I would like to show an attachment icon in the attachment ...
-1
votes
0answers
40 views

AngularJS - ng-repeat Showing single records Multiple Times

I am working with AngularJS. I am getting strange behavior from ng-repeat. I have a controller which returns me the data to ng-repeat such as: ..... //My other JS Functions ..... var app = ...
-1
votes
0answers
19 views

AngularJS - Adding CSS classes to siblings

I am trying to add a CSS class of open a DIV's sibling. Here's my HTML: <div id="profile-information"> // Code </div> <div class="profile-info"> <div ...
-1
votes
0answers
11 views

Show only values that are with the same value with another value in AngularJS

How can I make these accordion headings(keyw.Keyword) contain only values that has the same value with keyw.Keyword? $scope.recipe_data=[ { "Name":"Creamy mushroom and bacon soup", ...
1
vote
1answer
31 views

I need to put a space inside ng-true-value=“fa-li ” Angularjs

The plunker shows my list working the way I want. but I am unable to put a space between my list items. It would be ideal if ng-true-value="fa-li " read that space but it doesnt. I thought about ...
0
votes
1answer
28 views

avoid DOM manipulation using jQuery in ng-repeat

I am new to angular and working on a simple CRUD application. I understand that I must avoid DOM manipulation using jQuery if I can. I am displaying data on the page after I get data from server ...
0
votes
1answer
31 views

AngularJS - reset ngInit in ngRepeat

Assume the following JSON structure, which is strongly simplified from what I am currently working with: $scope.var1 = { "test1": { "name": "test1", "belongsTo": "var1", ...
1
vote
2answers
27 views

AngularJS 1.2 ng-repeat animation on page load

Staggering Animations are great! But I don't get it to work without user interaction. There is a total normal ng-repeat list: <div ng-controller="controller"> <div class="category" ...
0
votes
1answer
23 views

angularjs amount of method calls in in-include with ng-repeat [on hold]

We need to render a tree structure with angularjs. We are doing it with recursive templates, and it works before we have more than 100 items in the tree. What I noticed it that getTemplate method is ...
0
votes
1answer
27 views

Data Binding not passing correctly to controller function parameter inside ng-repeat

I am building a menu to allow users to change CSS on my webapp. My js method takes a string and then adds it into a URI for a bootswatch CDN. The code works when I hardcode a string. When I use the ...
0
votes
1answer
18 views

Can a filtered ng-repeat become a ui-router state in AngularJS?

I'm using ng-repeat to list photos and to filter them by genre: <div class="partial-view" ui-view> <div class="portfolio" ng-controller="PortfolioCtrl"> <ul ...
0
votes
2answers
32 views

ng-repeat on two arrays

I want to do a ng-repeat on an array which is composed of two arrays, like this : [titles: [], links: []] My arrays (titles and links) have the same length What i want to print in my ng-repeat, ...
0
votes
1answer
41 views

Bring single item to top of list

Given an arbitrary list of items, in a ul or set of divs, I would like to use the angular way to bring the selected item to the top of a list/display. $scope.items = [{name: "Garfield", id: 1}, ...
0
votes
2answers
30 views

How to count input tags created by ng-repeat

I am working on an Angular app that has a large survey form. I am making a status bar that will indicate what percentage of the form has already been completed. The form contains 9 input fields that ...
0
votes
4answers
27 views

nested ng-repeat $parent.$index and $index

I have a strange bug that, unfortunately, I cannot replicate with jsfiddle. I've commented out my entire code (Except libraries,etc) except for the following snippets. Is there something obvious ...
0
votes
1answer
23 views

Generate new $index for array items per specific key:value in Angular

Please be patient if I don't understand something and need clarification as I'm still new to Angular, and please simplify explanations for an Angular newbie if you can, thanks! I am working on a ...
0
votes
2answers
42 views

AngularJS - ng-repeat show one item at a time

looking for some ideas here. i have a meal plan object that contains an array of meals. only one meal can be set as primary at a time but i want the user to be able to cycle through the array of meals ...
-1
votes
1answer
21 views

Angular keep iteraction object in option with ng-repeat

With ng-options the selectedCar will be a car object <select ng-model="selectedCar" ng-options="car as car.description for car in cars track by car.id"> </select> With ...
1
vote
1answer
30 views

Display keys and values with Angular array

I have an array in Angular like this: $scope.test = [ {'item1' : 'answer1' }, {'item2' : 'answer2' }, {'item3' : 'answer3' } ]; And so on... Now there's 2 things I want to do. Firstly I want ...
0
votes
0answers
17 views

AngularJS - Filter HTML character references

I have a set of JSON responses/results that i display to the front-end. Some of these contain HTML character codes, for example: <b>Some Text</b> Rather thank using ngSanitize, can i ...
0
votes
1answer
22 views

Preserve scope values while moving template in ng-repeat

I have two collections binded to ui that populate through ng-repeat In that I have included ng-include="template.html" <div> <div ng-repeat="item in items1"> <ng-include ...
1
vote
2answers
40 views

How can I change ng-click behavior for a single element in an ng-repeat?

I am refactoring a table written in angular. Currently ng-repeat is used to create multiple tables rows, any of which will redirect to a given ui-sref when clicked upon: <tbody> ...
0
votes
2answers
32 views

AngularJS: scope change in ngClick gets lost

I have ngClick and ngClass on an element duplicated by ngRepeat: <li ng-class="{'active': $parent.mem.A == $key, 'not-active': $parent.mem.A && $parent.mem.A != $key}" ...
0
votes
1answer
40 views

Angular JS Use modal in ng-repeat list

I am displaying a list using AngularJS's ng-repeat... Below is the template per list item; It all works except for the {{...}} that are used inside bootstraps modal. It 'almost' works the way it ...
-1
votes
1answer
39 views

ng-repeat with as alias not working

According to documentation this directive should work: user in users | filter:search as searchResults. But it does only if I remove as, but I need it to show empty results message. Here is a jsfiddle ...
2
votes
2answers
22 views

How to apply filter for 2 dimensional json object with ng-repeat?

This is my json: [{"node": {'name': 'Nexus S', 'snippet': 'Fast just got faster with Nexus S.', 'age': 1}}, {"node":{'name': 'Motorola XOOM™ with Wi-Fi', 'snippet': 'The Next, ...
1
vote
1answer
37 views

Quiz questions with Angularjs

I create quiz app with angularjs and have some issues. When I click "next" checked radio doesn`t reset <div ng-repeat="answ in quiz.typical"> <label ng-click="quiz.checkAnsw()"> ...
0
votes
1answer
105 views

Filter array object based on one of its properties in angularjs ng-repeat

I am using angularjs v 1.2. My HTML code: <div ng-repeat="activity in currentActivitiesList" > <h3 style="color: green;" ...
1
vote
2answers
17 views

ng-repeat doesn't repeat after changing the value

At first i get the data in the begining but after posting some new students i want the array to update and it updates but table doesn't and i dont know why .It suppose to be like this or what? This ...
1
vote
1answer
27 views

angularJs filter nested object Track by

I created a custom filter, but its giving me an error I created a fiddle here: fidddler I have this user data: data: [{ profile: { firstName: 'John', ...
0
votes
2answers
32 views

AngularJS nested ng-repeat access to Index

I have nested array so I had to use 3 times ng-repeat <div ng-repeat = "cat in cats" > <div ng-repeat = "kitty in cat " > <button ...
0
votes
0answers
23 views

Adding nested ng-form's within a table using ng-repeat

I'm building a dynamic table with ng-repeat where each row is a record in my database. Some of these fields are allowed to be editable and I find out which ones are through my ...
0
votes
1answer
86 views

ng-repeat specify once json formatting

In HTML: <div class="field" ng-repeat="field in fields "> <strong>{{field.fieldName | json}}: {{field.itemCount | json}}</strong> <p ng-switch="field.type"> <p ...
1
vote
3answers
39 views

AngularJS ng-include scope

I am experienced as a developer but a beginner in angularjs and I have not used javascript for a while. My site is separated into several angularjs apps. But two apps could have to display the same ...
0
votes
1answer
24 views

Angularjs filter on nested property

I have an array of the following json object: { fooBar:{ Id: 2 Foo: { Id: 4 IsNew: false } Bar: { Id: ...
-1
votes
0answers
23 views

Kendo UI Grid Error messages not appearing in UI-Bootstrapper Alert ng-Repeat

I am trying to handle Kendo UI errors gracefully by displaying a UI-Bootstrap Alert with the error message in it. View - Index.html <alert ng-repeat="alert in alerts" type="{{alert.type}}" ...
0
votes
1answer
24 views

AngularJS form validation (using $invalid with ng-reapeat and Bootstrap)

I am trying to validate my AngularJS form, adding has-error class to form-group like: <div class="form-group" ng-class="{ 'has-error': form.field.$invalid }"> <input type="number" ...
0
votes
2answers
34 views

AngularJS creating dummy directive

I want to create in AngularJS a "dummy" element to make nested ng-repeats. So that following data.test = [{h:1, d:[11,12]}, {h:2, d:[21,22]}]; ---------------------- <dummy ng-repeat="a in ...
1
vote
3answers
29 views

Angular not selecting radio button from model

I'm working on system where I have an ng-repeat populating from an array of elements, with a radio buttons setting a property. When it loads in, none of the radio buttons are selected, but when I ...
0
votes
1answer
38 views

angularjs ng-repeat filter on static value not working

I can't figure out why the code below is not filtering just the values with unique_id of "027". I've tried it as a string as well '027'... JSON file: [ { "unique_id":"027", "title":"How ...
0
votes
2answers
40 views

How to refresh table data after insert or update?

My table data is not updated after I insert a new record. Index view <div class="row"> <div class="large-12 columns"> <table class="large-12"> <thead> ...
0
votes
2answers
55 views

angularjs ng-repeat after render

I am using AngularJS with ng-repeat directive. I really need to know if there is a way to bind events like 'ng-repeat-before-render' and 'ng-repeat-after-render'. I need that for several reasons, one ...