Commit e9700ca03aa92d765d964364cdbe1414af9d37b1

Authored by Andrew Buss
1 parent 4c1dc6dc98

Set up "app/" base URL

Showing 2 changed files with 8 additions and 9 deletions Side-by-side Diff

controller.js View file @ e9700ca
1 1 var app = angular.module('flashy', []);
2 2  
3 3  
4   -app.controller("HomeController", ['$scope', '$state', function($scope, $state) {
5   -
  4 +app.controller("HomeController", ['$scope', '$state', function ($scope, $state) {
  5 +
6 6 // SIGN UP
7 7 $scope.signUp = function (email, username, password) {
8 8  
9   -
  9 +
10 10 // make server call
11 11 console.log("go to dashboard");
12   -
13   - // if successful, go to dashboard
  12 +
  13 + // if successful, go to dashboard
14 14 $state.go('dashboard');
15 15  
16 16 };
17 17  
18 18  
19 19  
... ... @@ -19,18 +19,16 @@
19 19 // LOGIN
20 20 $scope.login = function (emailOrUsername, password) {
21 21  
22   - console.log("LOGGING IJN");
  22 + console.log("LOGGING IN");
23 23  
24 24 // make server call
25 25  
26 26  
27 27 // if successful, go to dashboard
28   -
29 28  
  29 +
30 30 };
31 31  
32   -
33   -
34 32  
35 33 }]);
36 34  
1 1 <!DOCTYPE html>
2 2 <html ng-app="flashy">
  3 + <base href="app/">
3 4 <header>
4 5  
5 6 <link rel = "stylesheet" href ="styles/bootstrap-3.3.4-dist/css/bootstrap.css" />