Intallation via bower:
bower install git@github.com:Gizra/angular-auth.git
Include the required libraries:
<script src='bower_components/angular-auth/dist/angular-auth.min.js'></script>
Inject the angular-auth module into your app:
angular.module('myApp', ['gz.angular-auth']);
Example: After add the module, we can use the service User
angular.module('myApp')
.controller('LoginCtrl', function(User) {
var user = {
username: 'admin',
password: 'admin'
}
User.login(user);
})