AngularJS is an open-source JavaScript framework. Its goal is to augment browser-based applications with Model–View–Controller (MVC) capability, reduce the amount of JavaScript needed to make web applications functional. These type of apps are also known as Single-Page Applications

learn more… | top users | synonyms (1)

1
vote
1answer
9 views

Adding directive makes controller undefined in angular js code

Here is my angular js app with html code <html> <head> <title></title> <script src="Scripts/jquery-1.4.1.js" type="text/javascript"></script> ...
0
votes
0answers
6 views

angularjs - dialog to confirm before form submission

I'm working in an app developed with angularjs, and I'm struggling with something that seems trivial, but it's not as simple using the "angular way". I have a form with a submit button in the end, ...
0
votes
1answer
18 views

HTML Select. Select2 + ng-click = Not working?

I am using AngularJS, and Select2 to create a nice dropdown menu. I've included an ng-click in the Option tag (of the Select tag). However, the ng-click does not seem to be working when in a ...
0
votes
2answers
25 views

How can I tell, inside a controller, if it has been run from ng-controller or a route

I have an AngularJS controller which is used both on a specific page, defined in a route: when("/search/:term", {controller:'SearchCtrl', templateUrl:'/static/templates/supersearch/list.html'}); ...
0
votes
3answers
15 views

need help to understand angular $watch

say I have a album list and user can add album controller.albumList = function($scope, albumService) { $scope.albums = albumService.query(); $scope.$watch('$scope.albums',function(){ ...
0
votes
3answers
23 views

Using app name in angular js div doesn't work

Here is my html and angular js code <html> <head> <title></title> <script src="Scripts/angular.min.js" type="text/javascript"></script> <script ...
0
votes
2answers
31 views

angularjs counting object length

I'm using underscore to count object length. _.size(object). Because this object is being handled by angularjs there's a $$hashKey property in the object that's making the length 1 larger than it ...
0
votes
0answers
23 views

Raising an event from an angular directive

How do I raise an event from a directive in Angular? I'm thinking of something similar to ng-click. For example I'm trying to create to wrap the bootstrap menu as a context menu directive. I want to ...
1
vote
2answers
24 views

latest 1.1.5 ng-animate not working with ng-show

The following code is adopted from a working sample for angular 1.1.4, only using the new GreenSock api for ng-animate. toggle functionality works, as ng-show behaves as expected, however The ...
0
votes
1answer
15 views

angular directive to call a modal which content depends on a parameter

I am trying to make a directive to call a modal (with bootstrap-ui) to update some properties. the modal content would be different depending on where it's called from. I made a plunker to ...
1
vote
2answers
20 views

How can I insert commands before or prevent $http's automatic parsing in AngularJS?

It seems like pretty much every question or explanation I find regarding $http or angularjs in general assumes you can modify the response from your requests. I can't do that and the response I'm ...
0
votes
0answers
27 views

Why does Angular not declare all functions of objects on the prototype?

Referring to this question: Understanding better Javascript OOP architecture Angular sets a closure variable called self to this. Later it's used in handleLocationChange to find the right this. I've ...
0
votes
0answers
15 views

How to change dynamically the upload (jquery-file-upload) url using $scope?

I'm using the jquery-file-upload how describes http://css.dzone.com/articles/angularjs-file-upload but aditionally I need to send a parameter via query string, so I need to change that parameter ...
0
votes
1answer
27 views

Is there a way to set the default (aka “otherwise”) $routeProvider based on a cookie value in AngularJS?

I'm building my authentication code and I'm using the 401 interception that has been talked about many times on this board. Redirect after user has logged in My only problem is that I don't like ...
-1
votes
1answer
13 views

How to apply class=“active” to filter in the same view with AngularJS [on hold]

<dl class="sub-nav" text-align="center"> <dt>Filter:</dt> <dd class="active"><a href="http://localhost:9000/#/">New</a></dd> ...

1 2 3 4 5 504
15 30 50 per page