Browse Source

begin upload

develop
Robin Thoni 8 years ago
parent
commit
172c877809

+ 9
- 0
public/app/app.js View File

@@ -51,6 +51,15 @@ angular.module('app', [
51 51
                 controller:'SignUpController'
52 52
             });
53 53
 
54
+            $stateProvider.state('upload', {
55
+                url:'/upload',
56
+                parent: 'root',
57
+                title: "Upload",
58
+                reloadOnSearch: false,
59
+                templateUrl:'views/upload.html',
60
+                controller:'UploadController'
61
+            });
62
+
54 63
             $urlRouterProvider.otherwise('/');
55 64
     }])
56 65
     .directive('dateNow', ['$filter', function($filter) {

+ 4
- 0
public/app/controllers/upload.controller.js View File

@@ -0,0 +1,4 @@
1
+angular.module('app')
2
+    .controller('UploadController', ['$scope', '$state', '$mdDialog',
3
+        function($scope, $state, $mdDialog) {
4
+    }]);

+ 1
- 0
public/app/index.html View File

@@ -52,6 +52,7 @@
52 52
     <script src="controllers/home.controller.js"></script>
53 53
     <script src="controllers/login.controller.js"></script>
54 54
     <script src="controllers/signup.controller.js"></script>
55
+    <script src="controllers/upload.controller.js"></script>
55 56
 
56 57
     <!-- Modal Controller -->
57 58
 

+ 5
- 0
public/app/views/upload.html View File

@@ -0,0 +1,5 @@
1
+<div layout="column" layout-fill layout-align="top center">
2
+    <p>
3
+        Upload
4
+    </p>
5
+</div>

Loading…
Cancel
Save