0
votes
1answer
46 views

Angular JS how to watch “Only One Property”

I have an array of objects with multiple editable properties. ** Update For example the object var objA = { propA:'vala', propB:'valb', propC:'valc', propD:'vald' } and array var a1 ...
0
votes
1answer
27 views

Angular js factory and injecting factory in normal javascript to make it modular

I have created a factory to invoke Rest services using $resource. The factory function is used multiple places in my code and is based on the usage I need to use for different callbacks. I want to ...
2
votes
1answer
16 views

Angular scopes and losing binding

I haven't been able to find anywhere else that really helps me understand my Angular problem here but I suspect it has something to do with inheritance that I haven't completely grasped yet. I'm ...
0
votes
1answer
27 views

AngularJS - Select, set default values for Edit/New

First project working with AngularJS and I am a bit stuck using the select list to either set the default value to the first option for a new, or if its an edit select the value. I have a form with ...
0
votes
2answers
24 views

Angular: Applying results from a factory service to a scope controller

I am writing an UploadService. The upload so far works fine. But I'd like to update the scope of the controller with the xhr callbacks, in order to display relevant information and UI. How would I ...
0
votes
1answer
15 views

How to clear events when manually bootstraping ng-grid in an Angularjs Single Page application

I'm working on an hybrid SPA with many angularJS modules in an existing application. When manually Bootstraping ng-grid twice or more, 'ngGridEventStartCellEdit' events are multiplied each times the ...
1
vote
1answer
32 views

Updating data/state between directives in AngularJS

this may be a silly question and I may not explain myself well but here goes... I have a form with the current HTML tags, please note the directives: <input type="password" name="password1" ...
0
votes
1answer
20 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 ...
0
votes
1answer
40 views

AngularJS: Directive binding

I'm trying to create a custom email textbox component, which has two fields. To do this I have this template: <div class="custom"> <div class="username" ...
3
votes
0answers
28 views

Testing AngularJS scope variables

I'm trying to implement a test that relies on a scope variable. I want to enable ng-switch-when to resolve an expression. This is what I'm trying to do: it('should switch on array changes', ...
2
votes
2answers
33 views

reading param from the current url in AngularJS

Yes there are alot of questions been asked about this topic. But I couldn't get solution for my problem. Here is my url http://localhost/resetpassword.html/7f18114f-1e1b-4c73-bf0f-f9e6f5bbb293 ...
0
votes
1answer
17 views

Custom directive scope not being initialized properly when used with ng-repeat

I have a problem with passing object information to my custom directive, which has an isolate scope. I have boiled my problem down to this simple plnkr to demonstrate the wall I am hitting: ...
1
vote
1answer
17 views

What is the meaning of scope:true in angularjs directive

I understand that if scope:false, this means that the directive will have no scope of its own. If scope:{something} this means there will be an isolated scope for the directive. What about ...
0
votes
0answers
13 views

AngularJs jquery sortable update array

I have a list of Fields which are sortable with jquery-ui. Every Field can be deleted. Look at my example. http://plnkr.co/edit/SbUxzoH3ezcJaoFxutkp?p=info When i reorder the fields and start ...
1
vote
1answer
26 views

scope of event arguments in angular directive

I have the following angular app to create a menu of sections/products. at present when rendered and hitting the 'add' button that is rendered within each li I want to add a section/product as a sub ...
1
vote
1answer
20 views

Ng-Select in Ng-Select choose the next value from the first select box

I have a situation where i have a select box that contains years (let's say 2014,2013,2012) for each select box there are quarter for example: (2014->{q1},2013->{q1,q2,q3,q4}) i want a simple way to ...
0
votes
1answer
25 views

Referencing Angular controller members from named / unnamed controllers

I decided to put this question up because I got to a point where I'm pretty confused about how Angular and the more delicate parts of JavaScript work. I try to formulate my question so it can be ...
0
votes
0answers
90 views

AngularJS - scope differences

I created a simple fiddle, to illustrate the differences between scopes (true, false, {}). But I can't understand, why it's not working as I expect... 1) Why changing the "val" on controller, ...
1
vote
1answer
28 views

Are scopes within each independent directive isolated and private within that directive?

The html code is as follows <div class="dir-view" > // unable to get {{ button.content }} <button type="button" id="notworking" ng-show="button.content.length" >{{ button.content ...
2
votes
2answers
41 views

Angular directive transclude create new scope?

I am trying to create directive component for modal windows, which take care about modal behaviour such as opening, closing, taking care of zIndex etc. Content of modal components is controlled by ...
0
votes
5answers
55 views

Angular JS - Convert Json Date and Apply Scope to model

I am creating a simple CRUD using AngularJS and facing a minor issue. While editing a form I am getting json string returned by server in model and I have created my custom directive to format that ...
0
votes
1answer
40 views

AngularJS ng-grid - Dynamically updating the columns and results

I am newbie in ng-grid. How do we dynamically update the columns and results inside the grid. I have created a http://plnkr.co/edit/CwUVIzSKVNCMTgpOW87f?p=preview Script var app = ...
0
votes
1answer
25 views

Viewing fixed header on mobile device

Hi my website has a fixed horizontal nav bar and I'm having problems scrolling it on a mobile device when I zoom in. I did research and the only way to fix this issue is to use javascript. I found a ...
0
votes
0answers
34 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 ...
1
vote
2answers
37 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' }, { ...
1
vote
1answer
32 views

Angularjs : Loop all isolated scope Directive Templates, on click of one

I have html: <div ng-repeat="mydata in data" class="ng-scope ng-binding"> <p class="ng-binding">{{mydata.postdata}}</p> <div my-rating rating-value="rating" ...
0
votes
1answer
29 views

AngularJS Calculated field from hidden fields

I'm creating a form in angularJS with a calculated field whose value is given from 3 numeric field, one of which is hidden, and it's visibility depends on the input of another. My problem is that as ...
0
votes
0answers
43 views

AngularJS view just render correctly after screen interaction

I have an Angular App with two controllers that updates two models every time a new info is sent by server. To clarify, the same info must be updated in the same view, but two different scopes. In the ...
3
votes
1answer
31 views

Directive Isolate Scope 1.2.2

I'm working with Angular version 1.2.2 for the first time and trying to make a simple directive that uses isolate scope with '=' binding to pass in an object. I've done this a few times before so I'm ...
0
votes
2answers
66 views

The scope.$watch item doens't work for fields of javascript objects

I faced with problem of watching properties of java script objects. Partially I described this problem here, but I didn't get solution... I will describe the problem another way. Here is fiddle Here ...
0
votes
1answer
29 views

ng-show is not working in table while the same statement working in div body

I have two tables inside a div element. I want to hide both the tables when template loads. and want to show them based on conditions. for this i created two tables inside a div and placed ng-show ...
0
votes
0answers
54 views

watch changes on JSON object properties

I'm trying to implement a directive for typing money values. var myApp = angular.module('myApp', []); var ctrl = function($scope) { $scope.amount = '0.00'; $scope.values = { ...
0
votes
1answer
27 views

Load value from db on rendering directive template

I am stuck in a doubt I have html : <div ng-repeat="mydata in data" class="ng-scope ng-binding"> <p class="ng-binding">{{mydata.postdata}}</p> <div my-rating ...
1
vote
1answer
55 views

Angular.js missing $scope update on page load

I've got a bit of an interesting situation where I have a weather app, and on loading the app, I want to get the users last position, and the last forecast they saw, and display that, while the app ...
0
votes
2answers
44 views

AngularJS select tag not populating with object data when in ng-repeat

I have an issue with angularjs's select directive. Here is my code: <ul class="thumbnails"> <li class="span4" ng-repeat="product in productsDTO"> <div ...
0
votes
0answers
42 views

Angular 1.2 no longer allows multiple isolated scope directives on same element?

I have some code in an Angular project that use two separate directives with isolated scope. They do not need to share scope, simply exist on the same element. They both alter the DOM in slightly ...
0
votes
2answers
38 views

Using angularjs $scope in the get url params collection?

AngularJS newb here, working on my first app (with .NET on the server). I want to call the WebAPI and pass it two parameters stored in $scope, but it won't do it. If I hard code the values it works ...
0
votes
0answers
26 views

Sharing isolate scope with nested directives in Angular

I want to have a custom directive that is reusable and creates an isolate scope so it can be used anywhere (as long as the consumer uses the API defined by the directive). Then, I want the consumer ...
1
vote
1answer
32 views

isolate scope '=' not getting assigned

I have the following directive: CorrelatorApp.directive('correlator', function ($WebApi) { return { restrict: 'A', scope: { crOptions: '=', }, link: ...
0
votes
1answer
20 views

Angular Provider config with data from ng-init

I create a Provider to wrap pusher javascript in angular. I want to configure my pusher key from my play 2 server. Right now, I pass the key using ng-init. But how could I assign this key to the ...
0
votes
1answer
30 views

Directive Inside another directive. Controller can't watch

I have 2 simple directives... the parent directive: .directive('modal', [function () { return { replace: true, scope: { /* attributes */ }, templateUrl: 'modal.tpl.html', transclude: ...
1
vote
1answer
14 views

AngularJS: Getting text from TD in directive attached via an attribute and raising event in controller $scope?

I seem to have a small issue. I have created a directive and inserted the directive via an attribute on an existing DIV, see below. <td my-directive>This Text I want to get hold of in my ...
0
votes
1answer
16 views

access child scope property in another child in angular js

is it possible to access sibling properties in angular js? I have a parent and two children My parent is my parent div children are:- 1. <li ng-repeat= "item in list"/> 2. and within ...
1
vote
2answers
47 views

How to get analytics api to call my callback (which isn't in global scope)? (Using angular)

I am using analytics API using: <script src="https://apis.google.com/js/client.js?onload=handleAnalyticsAPILoaded"></script> This is great, but the callback only works if the function ...
1
vote
2answers
75 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 ...
0
votes
0answers
18 views

GWT with AngularJS and History Support or Deep Linking

I have a Web application which is built using GWT as a client side technology. This works as a single page app without browser's history/back-button support. It is not, we didn't want to have it. But ...
2
votes
1answer
48 views

Angular - Using one controller for many coherent views across multiple HTTP requests

I have a simple Angular JS scenario. I show a list of experts in one view, and that list contains actions to edit an expert, which would be done in another view. These views are coming from server and ...
0
votes
1answer
33 views

Conditional logic in compile or link function of angular js directive?

I have a JSON object in $scope called data. The object has a member called items which may either be an Object or Array of Objects. For this reason I can't use ng-repeat: <ul> <li ...
4
votes
1answer
89 views

AngularJS - Deep object' property deletion

I know how to set object' "deep" property with $parse service , like in this post. But how can i delete a deep property ? Not assign it to null with this: ...
2
votes
1answer
46 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 ...

15 30 50 per page