0
votes
1answer
25 views

Validation directive code is executed on every item in ng-repeat

I am writing a single page application using Angular and Breeze. I have a set of entities displayed on my page using data-ng-repeat. I am doing in place validation on the entities by having an "edit ...
1
vote
2answers
32 views

If else conditions in angularjs templates

I am quite new to AngularJs. I am working on a Q&A Application where i have to render some questions and its answers in the form of a table. I have three Types of questions which I have to render ...
2
votes
1answer
24 views

configure angularjs module to send patch request

I am totally new to AngularJs. I am trying to send a PATCH request using Angularjs to Django Tastypie API's. My code is var module = angular.module('myApp', []); module.config(function ...
0
votes
1answer
17 views

Select multiple objects and save to ng-model

HTML: <select ng-model="contact.groups" ng-options="item.id as item.name for item in groups" ng-multiple="true" multiple> <option value="">Choose ...
0
votes
1answer
44 views

AngularJS ng-repeat doesn't update when LocalStorage is changed (using store.js)

In my view I want to display a list of items (subject names) which are saved in a LocalStorage element. My code in the view looks like this: <div class="list"> <a class="item" href="#" ...
2
votes
1answer
32 views

Angular filter exactly on object key

Hi I have a small angular app like so: html <body ng-app> <div ng-controller="Ctrl"> <div ng-repeat="user in users | filter:1"> <span>{{ user.username }}, {{ ...
1
vote
2answers
26 views

orderBy two fields (one in reverse)

I would like to order a friend list by status (online firsts, offline lasts) and by alphabetical order. All I manage to get is: Online firsts / Reversed alphabetical order Or offline firsts / ...
0
votes
1answer
27 views

passing model value from ng-repeat to ng-include to a directive using “=” in scope fails

i have the following code in my homepage <ul> <li ng-repeat="item in list" ng-bind-html-unsafe="item.Content" ng-include="item.Template" > </li> </ul> the value of ...
2
votes
3answers
40 views

Ng-repeat priority

I have the following: app.directive("myDirective", function($compile) { return { replace: true, scope: {}, template: "<div></div>", link: ...
1
vote
1answer
43 views

ng-repeat 'track by $index' behaviour on element removal

I am building an app which features a kind of "playlist". This is represented an ng-repeated custom directive with ng-repeat = "element in playlist" Because I want to allow a user to re-use the same ...
0
votes
1answer
24 views

Detect when a custom filter has completed in AngularJS

I have a custom filter function I'm calling for ng-repeat directive: <div ng-repeat="app in appVm.appList | filter:appVm.assetFilter">{{app.title}}</div> This obviously hits my ...
0
votes
0answers
28 views

how to add directives dynamically while using ng-repeat in angular js?

i have the following code on my homepage:- <ul> <li ng-repeat="item in list" ng-controller="controller1"></li> </ul> now item has various properties like item.type, ...
0
votes
0answers
20 views

AngularJs - ngRepeat with a filter that returns a new object

I'm trying to apply a transformation to the objects in my filter, which results in an array of new objects being returned. This is because I want to filter the objects AFTER the transformation is ...
0
votes
1answer
36 views

trigger function after ng-repeat

I am new to Angular, and I would like to do a really basic example. After displaying some data with a ng-repeat, I would like to use some of those data with javascript functions. But I don't know when ...
0
votes
1answer
30 views

AngularJS loop through JSON and check if multidimensional

I have the following controller: controller('homepageCtrl', function ($scope) { $scope.menu = { "Home": "/", "Data Sources": { "Add": "/datasources/add", "Edit": ...
0
votes
2answers
25 views

Need a callback after filtering the rows when using ng-repeat along with filter in angularjs

I am using angularjs, ng-repeat to fill the required data in the datagrid. Something like this: <input type="text" placeholder="Search" ng-model="query"> <tr ng-repeat="item in items | ...
0
votes
0answers
24 views

Creating a side panel for Google Map using Angular & Firebase

I basically want to create a map (similar to this: http://econym.org.uk/gmap/example_map2c.htm ) where there's a main pane with markers on Google Maps and a side panel with name of each marker (and ...
0
votes
1answer
26 views

Angular ng-repeat exact mach

I'm trying out Angular and love it but now I have a small question. Ok so this is my code: function phonesCtrl($scope) { $scope.phones = [ { "type":"Smartphone", }, { ...
0
votes
0answers
29 views

AngularJs running code after ng-repeat binding happens

I have a data table that I am loading with a call to a $resource. It is doing a query and using the returned value in an ng-repeat within the view. This all works great. The problem is that I am ...
1
vote
1answer
43 views

AngularJs Remove duplicate elements in ng-repeat

I have one dictionary which is stored in field_detail <li ng-repeat = "field in field_detail">{{field.displayName}}</li> Now I dont want to include duplicate displayName of field_detail ...
1
vote
0answers
70 views

Fixed header in bootstrap table with angularJS

I'm having an issue with my table styled with bootstrap and filled by ng-repeat (AngularJS) I want it to be fixed so I tried adding .fixed-header thead { position : fixed; } and ...
0
votes
0answers
43 views

How should I handle this aspect of the C in CRUD for AngularJS? [closed]

I want to make an interface with (Ajax-oriented) Django on the back end and AngularJS on the front end. I see one or two ways to create records (and update the relevant display), but one of them at ...
1
vote
1answer
47 views

How to test dynamically named inputs inside ng-repeat using $setViewValue()

I am trying to test a directive that dynamically adds form inputs to a page using ng-repeat. The code runs fine in the browser but trying to test it with Jasmine I discovered what seems (to me) to be ...
0
votes
1answer
36 views

ngRepeat's animations don't work when using ngInclude on the same element

Test case: http://plnkr.co/edit/dsG3gxFomAK8Q15Xfouj?p=preview The test case above is a list of data rendered with the ng-repeat directive, twice. Once without using ng-include and once using ...
0
votes
1answer
21 views

How do I update the scope of a service?

Here is my code: angular.module("testApp", []) .service("testService", function() { var privateScope = [1,2,3]; return { getScope: function() { return privateScope; ...
1
vote
1answer
41 views

Calculate total over repeated cart item totals with angular

I've a simplified shopping cart like the following with a controller for each cart item: <!DOCTYPE HTML> <html ng-app="cart"> <div ng-controller="cartCtrl"> <table> ...
0
votes
1answer
21 views

angular Failed to load resource error in inspector

I am uploading dummy content using angular's ng-repeat. var app = angular.module("homeApp", []); app.controller("entriesView", function ($scope){ $scope.itemEntry = [ { image: ...
0
votes
1answer
21 views

Dynamic controller pass to ng-template

I've been trying to improve myself on angularjs so i've started a project with angularjs in it. But i got stuck ... I'm trying to ng-repeat some html elements using controller1.modalItems. Within the ...
0
votes
1answer
33 views

AngularJS -> Capturing when DOM has finished rendering elements in directive

We're using AngularJS to render a schedule table with ng-repeat. I also need to call an initialization function for a jQuery plugin that acts on the DOM objects being rendered by the Angular code. ...
0
votes
0answers
25 views

Not sure I understand ng-repeat - returning number of items in one of the indexes

I'm learning and attempting to use Angular to build a table that will be draggable and sortable however I'm trying to wrap my head around the "Angular Way" of doing things and think I'm doing it ...
0
votes
1answer
35 views

How does ng-repeat work?

I dissected ng-repeat and extracted the code blocks attached, seeing that these comprise the logic that handles the repeating algorithm (which I want to understand how it works). I have quite a few ...
0
votes
1answer
15 views

Angular - unwanted behavior -new object permanently binds to template element

I have a small Angular project which implements a Controller thusly: concernsApp.factory('ConcernService', function ($http, $q) { var api_url = "http://localhost:8000/api/"; var ConcernService = { ...
1
vote
1answer
23 views

Dynamic creation of ng-model in angularjs

I have property fields that contains string array: in controller I have: $scope.data = {}; $scope.fields = [ "new0.name", "new0.type", "new0.address", "new0.city", ...
0
votes
2answers
27 views

Targeting nested array in ng-repeat

Can someone please advise me what I'm doing wrong here? I am retreiving some data and injecting in to a controller as 'productInfo'. I can load in the data fine but when I want to target specific ...
0
votes
1answer
49 views

AngularJs. Render table with ng repeat and ng switch

I'm trying render table with two columns using angularjs directives. <table> <tr ng-repeat="message in messages" > <td ng-switch-on="message.network" ng-switch when="twitter" ...
2
votes
2answers
33 views

Where angular holds DOM state, and based on what criteria

Consider this scenario: You create a simple state multi-check, and you provide a search for it via angular filters. See this fiddle. <div ng-app> <h2>Instant Search</h2> <div ...
1
vote
2answers
46 views

$index of Object in Array while using ng-repeat and a filter

Im fairly new to angular and have been able to get around somewhat. But I cant seem to find the answer to this scenario... I have an array of objects, which I am pulling down from firebase. I am ...
1
vote
0answers
48 views

AngularJS Table dat refresh based on dropdown list value selected

Interesting to read through your AngularJS articles, especially for new learner. Currently I am working on a project which has a senario to select parent list control to populate another dropdown ...
6
votes
4answers
93 views

How to make angular js hide DOM elements, and not remove them, in filters

Angular ng-repeat with filter works this way (I just discovered it by observing DOM in Chrome's developer tools): It actually removes the nodes which don't satisfy filter condition and re-renders ...
0
votes
1answer
47 views

Angular way to bind model from ng-repeat and send to new function

<li ng-repeat="result in apiResult"> <span class="">{{result.id}}</span> </li> <form ng-submit="findone()"> <input type="text" ng-model="searchTerm" ...
0
votes
1answer
35 views

unable to access nested objects with angular ng-repeat

"Private" property access no longer allowed: https://groups.google.com/forum/#!msg/angular/7l4j70wlPwI/dgt4chDVseAJ My $scope returns an array. An object within this array that looks like this: 0: ...
1
vote
0answers
101 views

AngularJS nested directive doesn't load when interpolated via ng-repeat

Something's telling me I have enough clues that I should be able to get this, but I've been down so many paths that my head is spinning to much to piece together a working solution. I have a ...
0
votes
1answer
21 views

Access parent index in nested ng-repeat

I would like to do this really basic example : <div ng-controller="ctrl"> <li ng-repeat="config in configs"> <span >Config : {{config}}</span> <li ...
0
votes
0answers
15 views

ajaxify-html5 doesn't work with angularjs ngRepeat

I've an application using angularjs and I want to ajaxify all. All links work very well except links in ng-repeat <ul> <li ng-repeat="demande in demandes"> ...
-1
votes
1answer
33 views

In html the radio button text clickable is not happening ? I had used the two list items in ul

See my problem is that i had written the code in angularjs with the using of ng-repeat for two times and based on some condition i had differentiated thatand one more important point is that i had all ...
0
votes
2answers
50 views

nested table using ng-repeat

What I'm trying to do is repeat three levels. Demo: http://plnkr.co/edit/qXLcPHXDlOKZYI5jnCIp?p=preview <table> <thead> <tr> <td>Block</td> ...
0
votes
1answer
79 views

Using a object on NG-repeat as a filter

I have a multiple select dropdowns which are generated from a JSON file of categories. I want to use the choice the users make in the selection to filter a list of apps that are generated with an ...
1
vote
3answers
106 views

Using ng-repeat index to display different html

I'm using Angular and ng-repeat as well as Semantic UI Grid layout. I'm trying to display 5 columns in a row. When the fifth item is reached create a new row. The below creates a new row and column ...
2
votes
1answer
59 views

Issue with select and ng-repeat in Angular

I've just started playing with Angular, and I'm having a hard time understanding certain things here. I wanted to set up a list of products, which belong to different categories. Some products are in ...
0
votes
0answers
42 views

editable with ngrepeat: automatically editing the latest added item

I need to add new items to a collection, that gets rendered with ngrepeat and using xeditable make it automatically editable. BTW, I'm using the "manual trigger" method for xeditable. Here it is the ...

15 30 50 per page