0
votes
1answer
14 views

ng-click on firing on mobile or tablet devices

On page load i have a controller that calls a service and then binds the returned data to some $scope.objects: app.controller("MainController", function($scope, $http, serviceGetData) { ...
0
votes
1answer
21 views

Angular JS: attribute not influenced by $scope…?

Angular newbie here. I have the following div: <div id="mainfr" data-curpos="dy[ {{curPosObj.dy}} ]" ...>blah blah </div> And in my controller I have: var nxtest = ...
0
votes
1answer
19 views

Binding doesn't update when the original object changes

I think I have misunderstood something about how data-binding and scopes work in Angular, or maybe I have some misconception in Javascript in general. I hope somebody can help me. Let's say I have a ...
1
vote
1answer
34 views

Bind to transclusive directive without isolating the scope

Let's say I have some angular markup like: <custom bindTo="modelProperty"> <!-- Trascluded content. --> </custom> Would it be possible for the custom directive to bind using ...
0
votes
1answer
25 views

Angular Isolate Scope and Attributes

In the following plunk: http://plnkr.co/edit/ss3HTb?p=info I am attempting to bind an attribute to an isolate scope. However, it is not working. I'm wondering if anyone knows why that is? I've ...
0
votes
1answer
534 views

Angular JS Two-Way Binding with Dropdown in Grid

I am using AngularJS as well as Parse and the Parse-Angular-Patch. I have a sample app that does basic crud. When I click the edit button. The Salutation loses it's state. Here's the relevant ...
0
votes
2answers
43 views

how to bind objects created by function-constructors in AngularJS

I want, my model in the controller, to be not a plain object like Number,Boolean,String, Object,Array, but an object created by function-constructor. Is it possible in AngularJS? Here is my html: ...
0
votes
1answer
35 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
187 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
75 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
374 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
701 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
535 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
2k 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
245 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 ...
1
vote
1answer
3k 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
336 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
2answers
9k 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
347 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
1k 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 ...