Skip to content

Instantly share code, notes, and snippets.

@jonatasfreitasv
Created June 14, 2015 18:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonatasfreitasv/842d446e540034aba1a3 to your computer and use it in GitHub Desktop.
Save jonatasfreitasv/842d446e540034aba1a3 to your computer and use it in GitHub Desktop.
Loginjs
/**
* Login controller
*
*/
(function() {
'use strict';
angular
.module('controlaCarApp.login', [])
.config(['$stateProvider', function config( $stateProvider ) {
$stateProvider.state('login', {
url: '/login',
parent: 'root',
views: {
'@': {
templateUrl: 'components/login/template/form.html',
controller: 'LoginCtrl'
}
}
});
}])
.controller('LoginCtrl', Controller);
Controller.$inject = ['controlaCarApp.auth'];
function Controller(auth) {
var vm = this;
activate();
function activate() {
console.log(auth.get());
}
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment