0
votes
1answer
12 views

AngularJS Iframe pop window like facnybox?

I am writing a web application using the AngularJs and PHP. I want to open a pop up by passing a few params and render a new page in pop up. How can i open a fancy-box like i-frame pop-up in a ...
-1
votes
1answer
17 views

Why NgModelController properties/methods starts with $

If you follow this doc http://docs.angularjs.org/api/ng.directive:ngModel.NgModelController , Why the properties/methods starting with $.
1
vote
1answer
18 views

cancelling angularjs timeout after route change not working

I'm have a timer that polls a server for data every 10 seconds. However, everytime a user switches to another controller, the timer should get destroyed. For some reason it's not happening with my ...
0
votes
0answers
29 views

ng-repeat double rendered after array is updated

I have a problem whereby my ng-repeat renders are doubled after the first array update. The problem happens when you first removed an object from the array, the ng-repeat messed up the rendering and ...
0
votes
2answers
19 views

scope function inside controller not updating the values according to ng-models in the view

Hi i got this function in the controller that is called from the ng-view: productApp.controller('ModalInstanceCtrl', function ($scope, $modalInstance, productFactory, prodId) { $scope.ok = ...
0
votes
0answers
55 views

How to create a directive that renders its content into multiple places using AngularJS?

How can I create a directive with AngularJS that duplicates its inner HTML into multiple target elements? I tried achieving this using cloning via jQuery, but the cloned element does not bind to the ...
1
vote
1answer
11 views

Add angular controllers to karma-coverage (Istanbul) code coverage preprocessor

This is how my project is set up: project/ assets/ js/ app.js services.js directives.js controllers/ FooCtrl.js BarCtrl.js css/ images/ test/ ...
2
votes
1answer
15 views

Angular execute XHR request without triggering a digest

I have a scenario where I want to issue an XHR post to the server. I do not want to trigger a $rootScope.$digest() by doing so. I know I can manually create my own XMLHttpRequest to do this same ...
1
vote
1answer
27 views

Remove helper HTML comments in Angular JS?

Is there a way to prevent Angular from creating "helper" HTML comments? For example, <div ng-include="myTemplate"></div> Will transform into something like <!-- ngInclude: ...
-1
votes
2answers
32 views

Why im not getting the response back from this factory function in angularJS

I got this angular factory: var productApp = angular.module('productApp', ['ngRoute', 'LocalStorageModule', 'angularSlideables', 'ui.bootstrap']); productApp.factory('productFactory', ...
0
votes
2answers
18 views

Getting months to display in order in through Angular Directive

jsFiddle I'm trying to build a table using Angular's ng-repeat directive that displays two years of data: -------------------------------------------------------- January | jan text this year | ...
0
votes
0answers
13 views

Need FineUploader Method uploadStoredFiles to Complete Before Proceeding

For some quick background, uploadStoredFiles() is a method used in the FineUploader plugin to asynchronously send attached file data to a server path. I'm also using AngularJS for my application. My ...
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 ...
-1
votes
0answers
48 views

Cannot read property of Undefined in do..while

I am writing a simple java script function inside a controller of angularJS, $scope.getwork = function(taskData){ $scope.workData = workData; var i =0; do{ var getworkQuery = ...
0
votes
2answers
29 views

AngularJs Evaluate an expresson against multiple conditions

Is it possible to call a function only while 2 conditions are true ? <a id="Send" ng-click="(model.condition1 and model.condition2) || doSomething()"></a>
2
votes
2answers
16 views

Angular: Updating different controller through service or better method

I have a UserService angular.module('mango.services', []) .factory('UserService', function() { var user = { id: null, name: 'anonymous.' }; ...
0
votes
2answers
43 views

JSON table creation with Angular in JSFiddle

Trying to get some JSON and Angular.js to work with out any luck. I'm using the following code but it doesnt seem to run the loadpeople function when the 'click here' is clicked. could be missing ...
0
votes
0answers
15 views

Angular.js updating SVG templates in directives

A while ago I asked about "Angular.js rendering SVG templates in directives", where I was replacing the DOM nodes that angular makes when rendering templates, with SVG nodes. I got a response that ...
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
0answers
46 views

html page not rendering in firefox using angularjs

after surfing for more than 2 hours and couldn't achieve the goal finally decided to paste the problem here , the problem i am facing that is cross browsing problem , the html document which i am ...
0
votes
2answers
32 views

My service is not updating - Angularjs

I have created a service to hold all of my search parameters. This way I can call my $resource from anywhere I need and the search parameters are always correct. Here is the service ...
-1
votes
2answers
50 views

JavaScript regex to validate an input is more than 0 characters

Forgive me if this is super simple, but I googled and googled and couldn't find a good example. I'm not that great with regex and just need to valid that an input has more than 1 character (i.e. is ...
0
votes
1answer
30 views

Angular.js multiple rest calls scope issue

i'm a biginner when it comes to Angular.js, and i have a problem with $scope not getting additional value from one of two $resource rest calls. Here's my code: controller: function ($scope, ...
-1
votes
0answers
23 views

Persist an Angular.js aray in a Rails Database [on hold]

I have a Rails application which has an Angular front-end. It is not a Rails API and Angular app interacting via JSON, but rather a hybrid where Rails renders the views and Angular manages the ...
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
2answers
41 views

string http response != same string in javascript

I'm building a web app that uses Angularjs. In one of my controllers I make a call to the backend that returns the current login status of the user. $http.get('http://localhost:3000/status') ...
0
votes
1answer
18 views

AngularJS Multiple Dynamic Views based on Single Route

Forgive me if I don't explain this well. I'm having a hard time getting my mind around the real problem I'm having. I'm hoping that someone will be able to make sense of my ideas and probably correct ...
0
votes
1answer
24 views

Complex layouts with AngularJS

I'm working in a web application using AngularJS + SpringMVC. I have some constraints as using pure HTML view pages, so, server-side frameworks as Tiles are not an option. My gess is that angularJS ...
0
votes
1answer
32 views

Can 2+ AngularJS modules be assigned to the same DOM element

I have a scenario that is a classic portal/CMS widget scenario: AngularJS may or may not be on the page Any number of widgets may or may not be on the page Each widget may be a member of a family ...
0
votes
0answers
19 views

Random jquery mobile / angular internal errors with android browser

I've implemented a html5 webapp using jquery-mobile, angularjs and the jqm angular adapter. On android devices using the default android browser (chrome works fine!) I randomly experience errors in ...
3
votes
3answers
74 views

What makes Angular and Backbone different from jQuery?

I have been using JavaScript and jQuery for quite a while now and want to extend my skill set further, during my search I came across two popular names Angular and Backbone and while reading about ...
1
vote
1answer
51 views

Angularjs Populating Form data (Select from other Select) [closed]

I am building a little shopping cart. I have different products that each have different options. The options select should only show the options for the selected product. How do i populate the ...
0
votes
1answer
59 views

AngularJS Directive: link objects in collection with transclude/compile

One of my pages needs to load an SVG file then edit it. Right now it is a huge directive that handles both the SVG as a whole, as well as every interaction tied to the shapes. I would like to split it ...
3
votes
1answer
190 views

AngularJS ng-class javascript animations doesn't trigger

I'm trying to attach js-defined animations to the ng-class directive via the usual syntax using add and remove but the animations won't run. Logging reveals that the add and remove functions don't get ...
1
vote
1answer
221 views

Angular : Adding Attribute directive on Element Directive

For my project, i'm currently developping custom form / inputs directive. For example, I have the following directive : angular.module('myApp').directive("textField", function() { return { ...
2
votes
2answers
190 views

Interpreting HTML Tags in Javascript String Literal

I make an AJAX call that gives me a string within a JSON object containing text formatted like this: Your girl was in Berkeley with a communist reader. <br> Mine was entombed within boombox ...
6
votes
1answer
164 views

Is there a way to make Angular.js more verbose when things are undefined?

I'm really just getting started in earnest with Angular.js and one of the first things I noticed is that it doesn't often throw errors if something isn't found. In a trivial example, if ...
1
vote
2answers
420 views

AngularJS nested components and scope

Here's a component for displaying a customer's address (please excuse the Jade): address(style='{{addressStyle}}') strong {{clinic.businessName}} br span {{clinic.address.address1}} ...
10
votes
2answers
2k views

Angular IE Caching issue for $http

All the ajax calls that are sent from the IE are cached by Angular and I get a 304 response for all the subsequent calls . Though the request is the same, the response is not gonna be the same in my ...
34
votes
4answers
17k views

AngularJS, show popups - The most elegant way?

This time i've a question more conceptual than else... so there isn't much real code here. I've this angularJS app. Everything works just fine. Now I need to show different popups when specific ...
9
votes
3answers
4k views

Yeoman - Current best way to use it with AngularJS & Express?

I am using Yeoman 1.0 beta and not interested in the express-stack branch. What, then, is the recommended/best way to use Yeoman to scaffold an Angular project within Express? I tried running yo ...
11
votes
2answers
4k views

AngularJS - Dependency injection in services, factories, filters etc

So I have some plugins and libraries I want to use in my angular app and (currently) I am simply referencing those functions/methods as they were intended in 99% of apps in a way that completely ...
1690
votes
8answers
172k views

How do I “think in AngularJS” if I have a jQuery background?

How do I “think in AngularJS” if I have a jQuery background? Suppose I'm familiar with developing client-side applications in jQuery, but now I'd like to start using AngularJS. Can you describe the ...
3
votes
2answers
91 views

Why is this scoped attribute is not available in the link function

I'm trying to create a directive, where I need some additional details which has to be passed as attributes for the elements. These values are of static nature. ie: there won't be any scoped ...
40
votes
2answers
6k views

Difference Between Observers and Watchers

I know that both Watchers and Observers are computed as soon as something in $scope changes in AngularJS. But couldn't understand what exactly is the difference between the two. My initial ...
22
votes
3answers
10k views

Structuring a NodeJS and Angular JS app

I'm about to attempt my first Angular JS project and it makes sense to use Node JS for the back end, even though it means learning both Angular and Node from scratch at the same time. The first thing ...
25
votes
3answers
17k views

Angular.js: Is .value() the proper way to set app wide constant and how to retrieve it in a controller

Hi there I was watching a couple of the angular.js videos and saw that the value() method was used to set a kind of module-wide constant. for example, one can set the Angular-UI library's config like ...
12
votes
3answers
17k views

parsing JSONP $http.jsonp() response in angular.js

I am using angular's $http.jsonp() request which is successfully returning json wrapped in a function: var url = ...
23
votes
7answers
17k views

Angularjs - ng-cloak/ng-show elements blink

I have an issue in angularjs with directive/class ng-cloak or ng-show. Chrome works fine, but Firefox is causing blink of elements with [ng-cloak] or [ng-show]. IMHO it's caused by the converting ...
308
votes
5answers
102k views

Angular.js vs Backbone.js [on hold]

Which MV* framework do you recommend? Angular or Backbone?

15 30 50 per page