Created
June 14, 2015 18:28
-
-
Save jonatasfreitasv/842d446e540034aba1a3 to your computer and use it in GitHub Desktop.
Loginjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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