3
votes
1answer
445 views

AngularJS Outer ng-repeat not to register watches on inner ng-repeat

This is in relation with my question - Angular JS consumes more browser memory My problem here is I need nested ng-repeats and the nested ng-repeats consumes more memory because of more watches being ...
2
votes
1answer
59 views

Using ng-repeat in directive with isolated scope

ng-repeat inside a directive with isolated scope is not picking up the property that's passed through '=' binding. HTML: <body ng-controller="myCtrl"> <div my-directive list="users"> ...
2
votes
1answer
66 views

deregister watchers in ng-bind when item is not visible

I am using AngularJS with ng-repeat. Each item in the repeater is huge item that contains many ng-binds and the list wrapped with a scrollbar. I would like to write a code that deregister the watches ...
2
votes
1answer
426 views

background default image if ng-style image loaded is invalid url

I am adding background images to my div like this ng-style="{'background-image' : 'url('+ myvariable.for.image +')'}"> where myvariable.for.image is a url like /examplesite/image/id This works ...
2
votes
0answers
99 views

Angular directive in ng-repeat doesn't call link

I'm fairly new to Angular and am having some trouble getting a directive to render within an ng-repeat. This is probably a lack of experience on my part so any help is greatly appreciated. Here are ...
2
votes
0answers
69 views

ng-model and form inside ng-repeat

I am creating a form for each item in my $scope. ng-model is not linking with the data on my form submit. Any ideas? <li ng-repeat="item in favourites"> <form ...
2
votes
0answers
85 views

Custom filter overrides original data or causes infinite $digest loop

Initial Situation TL;DR I want to filter a nested array with a custom AngularJS filter. Unfortunately not only the data for ng-repeat are filtered but the original object from $scope too. I have a ...
1
vote
0answers
25 views

Getting error while calling function from element attributes

Trying for creating multiple progress bar with dynamic value <progressbar class="progress-striped active" value="{{getValue(value.currentStatus)}}" type="{{getType(this.value, ...
1
vote
0answers
85 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: ...
1
vote
0answers
265 views

AngularJS - ngrepeat form input elements dynamically filled with default values to post

http://jsfiddle.net/9sCnC/12/# I'm going through a json file and parsing it through ng-repeat, a button on each item opening a modal window. In this window a form is generated with data I would like ...
1
vote
0answers
116 views

adding more than one sources of data to angular

this is what I have in my model // The contents of individual model .js files will be concatenated into dist/models.js (function() { // Protects views where angular is not loaded from errors if ( ...
1
vote
0answers
83 views

AngularJS: Accessing current object in ng-show function for recursive directive

Given the following code: http://jsbin.com/EkIqAju/2/edit How can I access the current object being evaluated in the showQuestion() function in the controller? I need this to be able to validate ...
1
vote
0answers
193 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 ...
1
vote
0answers
266 views

AngularJS ng-repeat not working with DatePicker controller

I can't seem to get the inlined calendar button associated with the DatePicker to work using ng-repeat on two DatePickers. They both work when I instantiate the DatePickers separately, but I wanted ...
1
vote
0answers
105 views

Custom filter filter extension pattern?

I'm currently using a filter filter on an ng-repeat which includes a number of search criteria input fields and a global search like this Plunker (ignore the misbehaviour of ng-repeat, this is a ...
1
vote
0answers
125 views

(Help) Input prepopulated with db value, need to be able and save back to db

Very new to AngularJS (and javascipt in general). Here's what I currently have that I know works: 1) Input with db data 2) Working function that submits to PHP I currently have an input populated ...
0
votes
0answers
15 views

AngularJS with spring ModelAndView Ajax

I am sending a request from below jsp <body ng-controller="MyController"> <div data-role="page" class="container"> <%@ include file="header.jsp" %> <div ...
0
votes
0answers
26 views

Binding a resource and a js object angularjs

I have a navigation menu that I am building based off of a json object coming from an $resource. Sometimes I need to append to this list with new menu items from another $resource. I want to bind the ...
0
votes
0answers
32 views

Angular.js select option value in controller

I receive this json from a service after client call. JSON [ { "Accreditment" : { "Id" : "1", "Creator" : "John Smith", "IdCreator" : "1", "CreationDate" : ...
0
votes
0answers
30 views

Custom directive using ng-model inside ng-repeat

I'm trying to create a list component that is bound to a list defining column metadata and row values. For example: var list = { cols: [ { name: "date", display: "Date", type: "date" }, { ...
0
votes
0answers
40 views

Angularjs Directives Scope Issue

I am having trouble with a directive. My model updates with data that is being loaded by a http call. Without the call the service the directive works correctly. I have a directive called ...
0
votes
0answers
29 views

ngClass is not updated successfully in a directive

I have created a directive, that creates a popup with a ul element, but ng-class = isVisible is not returning the correct value. It works, if I only have one use of the directive at my page, but when ...
0
votes
0answers
44 views

AngularJS: $scope.array.push() does not update the view, even with $apply

I'm trying to learn AngularJS and there is this thing that I don't understand, which seems like all the internet solved by using $scope.$apply, but I already use it and it does nothing. Basically, I ...
0
votes
0answers
58 views

Angularjs Service Scope + Bindings

I am looking to run the following controller but im having trouble with scope. I have a service that calls two functions that retrieve meta data to populate scope variables. The issue is that ...
0
votes
0answers
21 views

Angularjs: how to Call method in Controller while submitting the Form

Actually In my form page of Angularjs, have two submit buttons i.e In one field set i have one button for update and another button at the outside of all field sets for submission of whole page. Code ...
0
votes
0answers
19 views

Data assign through service not updating in Angular JS

I wrote a service to share and update Datas between controller myApp.service('Physician',function($http){ var physicians = []; var refresh = function(fetch) { physicians = [] $http({ url: ...
0
votes
0answers
47 views

Recursive tree style with angular

as the name suggests i am trying to build a recursive tree directive I has to mimic the structure from the expression builder as that's how its been setup and i want to replace it with an angular ...
0
votes
0answers
32 views

angularjs freezes page when loading / displaying new data

I'm currently programming an angularjs app which fetches articles (around 50 but it also happens already with 20) and displays them. Each article has its own directive and the main template iterates ...
0
votes
0answers
36 views

AngularJS - Multiple conditions in ng-switch-when

I have a fairly long ng-switch-when statement and some with repeating matches. I've read that angular does not support multiple value ng-switch's (im using v1.2.8) but have found this article: How ...
0
votes
0answers
62 views

ng-repeat not working within a custom directive. Scope aren't created the first time

I have been struggling this issue for 2 days and I need some help. This is the code I have ( partially, not fully working ). http://plnkr.co/edit/BDUBTJ3yojbrlwYSJg7S?p=preview The application ...
0
votes
0answers
59 views

angular.js directive inner ng-repeat, dynamically add model item, get undefined attributes

I have my directive inner ng-repeat and it works in initial load, but when I dynamically add modelItem then I'm getting undefined values for attributes of my directive. <li ng-repeat="item in ...
0
votes
0answers
27 views

How to lazy load panel content on a button click having multiple panels on the same page using angularjs

I have a scenario here where I have multiple panels (using ng-repeat) on the same page. Each panel have a link, on click of which it loads data specific to that particular panel and returned response ...
0
votes
0answers
47 views

How to set up widget with Click to show Master/Slave Checkboxes in AngularJS

I'm attempting to write a prototype for a widget that contains 2 sides. On the left side is a list of interest groups, on the right side are the associated interest topics. (i.e. Pets on the left, ...
0
votes
0answers
26 views

AngularJS multi-dimensional models: using childscopes?

I'm trying to achieve a form where I can dynamically add rows with multiple fields per row (say a productnumber and quantity). I would like to do this by having a table with the actual inputs visible ...
0
votes
0answers
19 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, ...
0
votes
0answers
60 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
0answers
82 views

angularJS watching values of an object list

I have a List containing objects in my angular js project. Each object of the list contains a name and a value. This value is bound to a text field. The list is displayed on a grid and when ever the ...
0
votes
0answers
77 views

How do I filter html content angular

No matter what I try, I am unable to get this to work. I have downloaded repositories that do exactly what I am trying to do, but I have no success. I am trying to filter through a repeater of divs ...
0
votes
0answers
68 views

Accessing parent $scope

I have posted earlier this post with the choice of not providing all my code. But now im stuck since with the same problem so I give it a change with providing all my code. I know its not easy to ...
0
votes
0answers
116 views

view not updated in ng-repeat when using templateUrl

I've got a use case whereby a wizard with 2 steps guides the user through each step. At step 1, when the user clicks a button to proceed to the next step, I first load an array of items from the ...
0
votes
0answers
71 views

What is “as” in Controller's expression in AngularJS?

The example in Filter Angular Guide has Controller expression with "as", which I could not see documented there: <div ng-controller="FilterController as ctrl"> What is the meaning of this ...
0
votes
0answers
148 views

AngularJS Nested Ng-repeat Counter Decrementation

I am trying to decrement a counter within a nested AnguarJs ng-repeat. I know it is a problem of scope, because the increment in the outer ng-repeat works fine, but in the inner ng-repeat is where I ...
0
votes
0answers
89 views

Select Last HTML Select element from multiple select elements using AngularJs

Hello guys I am working on an application where I am using django-tastypie as backend and AngularJs for front end.I am totally new to AngularJs. In my template there may be multiple HTML Select tags ...
0
votes
0answers
933 views

what are $$hashkey objects in Angularjs? How can I read multiple file inputs?

I am trying to get multiple file attachments from file inputs using the following directive: var app = angular.module('app',['ui.bootstrap']).config(function($interpolateProvider){ ...
0
votes
0answers
253 views

ng-repeat load new updated array model but do not clear the previous value of array in template

I have a list of articles, every article has a list of comments with user.name and user._id of that comment. Click to each user, it shows a chat box to send message to that user. Everything is ok with ...
0
votes
0answers
45 views

Problems with scope: ng-repeated and filtered custom directives

I have an array of objects that each contain a url, a title, and a description of page content, and I built a little directive to display the information. On initial glance, my directive works fine. ...
0
votes
0answers
153 views

What's the best practice for nesting complex views with directives and ngRepeats in AngularJS?

I've got a project that I'm work on with AngularJS and Masonry. There's an issue with initializing Masonry, the grid is broken or fails to render properly - by using a timeout, helps preventing it ...
0
votes
0answers
250 views

AngularJS: ng-repeat, checkbox group and dynamic ng-model creation

Basically I have a situation like the one depicted in this plunk: http://plnkr.co/edit/h0PPlArGfMmfxwBPVJJl?p=preview. I am trying to dynamically create a set of related checkboxes from a json, ...
0
votes
0answers
101 views

Create the duplicate select drop down on button click

I had the span with select drop down in view like this: <div class="modal-body"> <span><button class="btn btn-primary" ng-click="showAttributes=true;addAttributes()">Add ...
0
votes
0answers
205 views

Angularjs - how to access an ng-include template's data to modify it through another template within the same controller

What I am trying to acomplish is to have two different templates within my app: one is generated through ng-repeat like so: <div ng-repeat="data in tree" ...