Fix along the guidelines.

This commit is contained in:
in-async
2014-11-08 23:50:15 +09:00
parent 154c40d628
commit 12af931fb0
2 changed files with 52 additions and 52 deletions

View File

@@ -168,7 +168,7 @@ interface AngularFireAuthScope extends ng.IScope {
}
myapp.controller("MyAuthController", ["$scope", "$firebaseSimpleLogin",
function ($scope: AngularFireAuthScope, $firebaseSimpleLogin: AngularFireAuthService) {
function($scope: AngularFireAuthScope, $firebaseSimpleLogin: AngularFireAuthService) {
var dataRef = new Firebase(url);
$scope.loginObj = $firebaseSimpleLogin(dataRef);
$scope.loginObj.$getCurrentUser().then(_ => {
@@ -178,9 +178,9 @@ myapp.controller("MyAuthController", ["$scope", "$firebaseSimpleLogin",
$scope.loginObj.$login('password', {
email: email,
password: password
}).then(function (user) {
}).then(function(user) {
console.log('Logged in as: ', user.uid);
}, function (error) {
}, function(error) {
console.error('Login failed: ', error);
});
$scope.loginObj.$logout();