-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Chris Sevilleja
committed
Jan 18, 2014
1 parent
36db1f6
commit 3acb3cc
Showing
4 changed files
with
18 additions
and
15 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
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,26 +1,22 @@ | ||
angular.module('appRoutes').config(['$routeProvider', '$locationProvider', function($routeProvider, $locationProvider) { | ||
angular.module('appRoutes', []).config(['$routeProvider', '$locationProvider', function($routeProvider, $locationProvider) { | ||
|
||
$routeProvider | ||
|
||
// home page | ||
.when('/', { | ||
templateUrl: 'views/home.html', | ||
controller: 'NerdController' | ||
templateUrl: 'views/home.html' | ||
}) | ||
|
||
// sample page 1 | ||
.when('/sample1', { | ||
templateUrl: 'views/sample1.html', | ||
controller: 'NerdController' | ||
templateUrl: 'views/sample1.html' | ||
}) | ||
|
||
// sample page 2 (with parameters) | ||
.when('/sample2:nerd_id', { | ||
templateUrl: 'views/sample2.html', | ||
controller: 'NerdController' | ||
templateUrl: 'views/sample2.html' | ||
}); | ||
|
||
// enable html5 history api | ||
$locationProvider.html5mode(true); | ||
$locationProvider.html5Mode(true); | ||
|
||
}]); |
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,5 +1,6 @@ | ||
angular.module('NerdCtrl').controller('NerdController', ['$scope', function($scope) { | ||
angular.module('NerdCtrl', []).controller('NerdController', function($scope) { | ||
|
||
$scope.test = 'hello'; | ||
$scope.test = 'hello'; | ||
console.log('fuck'); | ||
|
||
}]); | ||
}); |
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,5 +1,5 @@ | ||
angular.module('NerdService').factory('Nerd', ['$resource', function($resource) { | ||
angular.module('NerdService', []).factory('Nerd', ['$resource', function($resource) { | ||
|
||
|
||
|
||
|
||
}]); |