amitaibu / angular-auth

Authentication component for AngularJs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

angular-auth

Getting Started

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);
  })

About

Authentication component for AngularJs