FAQ Database Discussion Community


angularjs v1.3.15 deep linking / routing / path no longer working with hashtag (Migrated from v1.2.3)

angularjs,url-routing,hashtag,deep-linking,angularjs-1.3
I am very new to angular and working on some code that I wanted to upgrade the angular version from 1.2.3 to 1.3.15 (which I have also never done before). When I did, the navigation links on my index page stopped working; rather it seems like the router.js falls through...

Remove ng-submitted after successful submission

angularjs,angularjs-ng-form,angularjs-1.3
I have a form that submits via an api and can be reused immediately after the post request has finished. For validation styling requirements I need to remove the css class ng-submitted from the <form> I can't seem to find an angular method for clearing it, or resetting the form....

angularjs 1.3 controller as not working

angularjs,angularjs-scope,angularjs-1.3
I am using one controller on two different part of Page, For that i am using alias of controller using "controller as" syntax. But after upgrading to Angular 1.3.15 it is no longer working.Following is the fiddle to simulate the situation. Working example with 1.2.20 it is not working with...

Angular JS 1.3+ One time binding for ng-bind with a ternary condition

angularjs,binding,angularjs-1.3
Would this be correct if I need to use one time binding for a ternary condition inside data-ng-bind directive? <span data-ng-bind="::model.boolean ? 'json.item.value1' : 'json.item.value2'"></span> or <span data-ng-bind="::(model.boolean ? 'json.item.value1' : 'json.item.value2')"></span> ...

AngularJS $resource Custom Action for Requesting a Password Reset

angularjs,rest,ngresource,angularjs-1.3
I'm just starting to use ngResource in a project to consume my RESTful endpoints. Is this how you would implement a user password reset using $resource? Looks weird passing the email address as a URL parameter. .factory('User', ['$resource', function ($resource) { var paramDefaults = {id: [email protected]'} var actions = {...

Angularjs Uncaught Error: [$injector:modulerr]

javascript,angularjs,angularjs-scope,angularjs-controller,angularjs-1.3
I am learning angularjs and i am not able to figure out whats wrong with this simple code. It seems to look fine but giving me following error. **Error**: Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.3.14/$injector/modulerr?p0=app&p1=Error%3A%20…gleapis.com%2Fajax%2Flibs%2Fangularjs%2F1.3.14%2Fangular.min.js%3A17%3A381) And before adding ng-app="app" (I was just keeping it as ng-app) it was giving me following errors....