0
votes
1answer
27 views

Loop to get up-to-date information constantly from another variable in JS/angularJS

I have an angular app that uses jPlayer as a playlist for mp3s. The call to $scope.audios[defaultPlaylist.current].id returns the most up-to-date value of the currently playing audio's key. I need to ...
2
votes
2answers
104 views

Two way data binding between controller and external directive

My setup: Imagine a controller for a shopping cart: app.controller('CartCtrl', function ($scope) { $scope.data = [ { id:0, title:'article1' }, { ...
0
votes
0answers
60 views

Why http request call error callback

Why http request call error callback when data is returned from server? My code: var app = angular.module('app', []); app.controller('MarkerList', ['$scope', '$http', function($scope, $http) { ...
0
votes
3answers
137 views

Angular wait resource delete respond to update list?

I'm using $resource to add/delete list. The problem is after deletion I still see sometimes deleted element. How I can resolve it? This is the code: services.js var services = ...
6
votes
1answer
352 views

AngularJS: How to correctly work with Directives, Scopes and Bindings to avoid memory leaks?

I'm trying to find a solution for an AngularJS app memory leak. Because I'm new to the AngularJS world I don't really know where to start and where to correct and optimize my code. I'm trying to give ...
1
vote
3answers
177 views

Angular JS : $scope.data is undifined

I am new to Angular js. I tried following code. <html> <head> <title>angular js</title> <script src="js/lib/jquery.min.js"></script> <script ...
0
votes
2answers
1k views

AngularJS binding to nested model properties

We've built a dynamic form directive that gets metadata from the server and then builds a form dynamically. The rendered inputs are bound to a Model object separate from the metadata. In order to ...
0
votes
1answer
239 views

Angularjs models not binding to json template used in http post request

I have a static/variable json request template of sorts that I'm using when sending a $http POST request from a controller via a $http post factory. The problem is that model data, which is in scope ...
0
votes
1answer
1k views

Two-way data-binding with ng-grid?

How do I get two-way data-binding with ng-grid? I am working from their pagination example, and have figured out how factory and broadcast work; and have thus successfully loaded new versions of my ...
3
votes
2answers
228 views

Single page app, permalinks and ngView?

This is my current setup, with each column being represented by a controller: <navbar></navbar> [column1] [column2] [column3] <footer></footer> Additionally each column has ...
3
votes
1answer
5k views

Getting select rows from ng-grid?

How do I create (or access) an array of selected rows in my ng-grid? Documentation (scroll to "Grid options") id | default value | definition ...
1
vote
2answers
323 views

AngularJS get form inputs without binding

I'm building my first application with AngularJS, but i have run into a little problem. I got a table where i render every user in users array like below: <table class="table table-hover"> ...
8
votes
1answer
710 views

AngularJS: Two way data binding fails if element has ngModel and a custom directive

I made two directives to setup custom error messages in AngularJS: errors -> displays the error messages for a form error-message -> sets up a custom error message on an input For some reason ...