All Questions

38
votes
2answers
20786 views

Why are angular $http success/error methods deprecated? Removed from v1.6?

The angular documentation has a Deprecation Notice for the $http success and error methods. Is there a specific reason this abstraction was removed from the library?
74
votes
3answers
28058 views

angularjs 1.6.0 (latest now) routes not working

I was expecting to see this question on Stackoverflow but didn't. Apparently I'm the only one having this problem that seems to me to be very common. I have a basic project I am working on but the ro...
25
votes
3answers
14666 views

URL hash-bang (#!/) prefix instead of simple hash (#/) in Angular 1.6

My URLs on an AngularJS project has changed from localhost:3000/admin#/ to localhost:3000/admin#!/ since the last time I worked on my project... Nothing found on the web, does someone know what is th...
48
votes
7answers
47271 views

Angular 1.6.0: "Possibly unhandled rejection" error

We have a pattern for resolving promises in our Angular app that has served us well up until Angular 1.6.0: resource.get().$promise .then(function (response) { // do something wit...
2
votes
1answers
676 views

Routing issue with AngularJS project using yeoman setup

I have setup a new Angular project using yeoman. Angular version is 1.6.0. Project setup was successful but I have been facing an issue with routing Task runner - Grunt When I run the project in loc...
36
votes
6answers
16337 views

Angular All slashes in URL changed to %2F

I'm having a massive problem with Angular routing. Up until recently everything has been fine with the following route: $routeProvider.when('/album/:albumId', { controller: 'albumPageController'...
4
votes
6answers
5411 views

AngularJS: How to remove #!/ (bang prefix) from URL?

I already have done $locationProvider.html5Mode(true); but it is not working. Whenever I access http://example.com it goes to http://example.com/#!/. Code is given here: var myApp = angular.module('m...
2
votes
3answers
5135 views

Best practice for using $rootscope in an Angularjs application?

We have a large Angularjs 1.6 application that has $rootscope scattered throughout the app in over 200 places in filters, services, routes, etc.. so it needs to be refactored, but I'm not sure how to ...
23
votes
9answers
38380 views

Error with $http.get in angularJS -- Success not a Function

Getting this error: angular.min.js:122 TypeError: $http.get(...).success is not a function at getUserInfo (app.js:7) at new (app.js:12) at Object.invoke (angular.min.js:43) ...
4
votes
2answers
3252 views

Angular Upgrade (1.5 to 1.6) Causes directive scope bindings to become undefined

I have the following code: angular .module('myApp') .directive('layout', function () { return { restrict: 'E', template: '<div ng-include="layoutCtrl.pageLayout">&...

Previous Next