diff --git a/.gitignore b/.gitignore index b702acc..ff4e15a 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ node_modules/ bower_components/ tmp .DS_Store -.idea \ No newline at end of file +.idea +*~ diff --git a/app/app.js~ b/app/app.js~ deleted file mode 100644 index 17addfb..0000000 --- a/app/app.js~ +++ /dev/null @@ -1,11 +0,0 @@ -'use strict'; - -// Declare app level module which depends on views, and components -angular.module('myApp', [ - 'ngRoute', - 'myApp.home', - 'myApp.version' -]). -config(['$routeProvider', function($routeProvider) { - $routeProvider.otherwise({redirectTo: '/home'}); -}]); diff --git a/app/home/home.html~ b/app/home/home.html~ deleted file mode 100644 index 5ceaddf..0000000 --- a/app/home/home.html~ +++ /dev/null @@ -1,33 +0,0 @@ - - - - - AngularJS & Firebase Web App - - - - - - - - - - -
-
-

AngularJS & Firebase App!

-
-
- - - - - - -
- - - - diff --git a/app/home/home.js~ b/app/home/home.js~ deleted file mode 100644 index aeae589..0000000 --- a/app/home/home.js~ +++ /dev/null @@ -1,33 +0,0 @@ -'use strict'; - -angular.module('myApp.home', ['ngRoute','firebase']) - -.config(['$routeProvider', function($routeProvider) { - $routeProvider.when('/home', { - templateUrl: 'home/home.html', - controller: 'HomeCtrl' - }); -}]) - -.controller('HomeCtrl', ['$scope','$firebaseSimpleLogin',function($scope,$firebaseSimpleLogin) { - var firebaseObj = new Firebase("https://blistering-heat-2473.firebaseio.com"); -var loginObj = $firebaseSimpleLogin(firebaseObj); - - $scope.user = {}; - $scope.SignIn = function(e){ - e.preventDefault(); - var username = $scope.user.email; - var password = $scope.user.password; - loginObj.$login('password', { - email: username, - password: password - }) - .then(function(user) { - // On success callback - console.log('Username and password found'); - }, function(error) { - // On failure callback - console.log('Username and password not found'); - }); - } -}]); diff --git a/app/index.html~ b/app/index.html~ deleted file mode 100644 index 3d509cd..0000000 --- a/app/index.html~ +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - My AngularJS App - - - - - - - - -
- - - - - - - - - -