-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
all cleaned up :). a few remnants for demo purposes
- Loading branch information
Gabe Rogan
committed
Nov 17, 2016
1 parent
6745896
commit b92e869
Showing
45 changed files
with
274 additions
and
414 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,4 @@ | ||
var app = angular.module('app', ['ngRoute']); | ||
|
||
// Root controller | ||
app.controller('root', ['$scope', '$location', function ($scope, $location) { | ||
$scope.page = { | ||
'title' : 'Root', | ||
'id' : 'root', | ||
'blackNav' : false | ||
}; | ||
$scope.go = function ( path ) { | ||
$location.path( path ); | ||
}; | ||
}]); | ||
// Root controllers in /root/ folder | ||
// Page controllers in /pages/[your-page] folder |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
app.controller('404Ctrl', ['$scope', function ($scope) { | ||
$scope.test = "Title"; | ||
$scope.test2 = "xxdddd"; | ||
$scope.page.title = '404'; | ||
$scope.page.id = '404'; | ||
$scope.page.yourVar = "globalStuff"; | ||
|
||
$scope.var2 = "localStuff"; | ||
}]); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<div class="spacer"></div> | ||
<h1>You've reached pages/404/view.html by going to an invalid link.</h1> |
File renamed without changes.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
app.controller('CategoryCtrl', ['$scope', function ($scope) { | ||
$scope.page.title = 'Categories'; | ||
$scope.page.id = 'cat'; | ||
$scope.page.yourVar = "globalStuff"; | ||
|
||
$scope.var2 = "localStuff"; | ||
}]); |
File renamed without changes.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<div class="spacer"></div> | ||
<h1>You've reached pages/categories/view.html.</h1> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
app.controller('FoodCtrl', ['$scope', function ($scope) { | ||
$scope.page.title = 'Food'; | ||
$scope.page.id = 'food'; | ||
$scope.page.yourVar = "globalStuff"; | ||
|
||
$scope.var2 = "localStuff"; | ||
}]); |
File renamed without changes.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<div class="spacer"></div> | ||
<h1>You've reached pages/food/view.html.</h1> |
Empty file.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
app.controller('LoginCtrl', ['$scope', function ($scope) { | ||
$scope.page.title = 'Login'; | ||
$scope.page.id = 'login'; | ||
$scope.page.yourVar = "globalStuff"; | ||
|
||
$scope.var2 = "localStuff"; | ||
}]); |
Empty file.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<div class="spacer"></div> | ||
<h1>You've reached pages/login/view.html.</h1> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains 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
This file contains 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
File renamed without changes.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
app.controller('root', ['$scope', '$location', function ($scope, $location) { | ||
$scope.page = { | ||
'title' : 'Root', | ||
'id' : 'root', | ||
'blackNav' : false | ||
}; | ||
$scope.go = function ( path ) { | ||
$location.path( path ); | ||
}; | ||
}]); |
This file contains 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
File renamed without changes.
This file contains 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
File renamed without changes.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,3 @@ | ||
<script type="text/ng-template" id="/todos.html"> | ||
<ul></ul> | ||
</script> | ||
|
||
<script> | ||
$('.user-nav').sideNav({ | ||
menuWidth: 260, // Default is 240 | ||
edge: 'right', // Choose the horizontal origin | ||
closeOnClick: true, // Closes side-nav on <a> clicks, useful for Angular/Meteor | ||
draggable: true // Choose whether you can drag to open on touch screens | ||
} | ||
); | ||
</script> |
Oops, something went wrong.