mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-05-08 23:11:00 +00:00
Created basic viewing pages in angular
Can now search and view tournaments. Can now view team scores, weights and seeds, mats and bout board
This commit is contained in:
@@ -13,18 +13,32 @@
|
||||
|
||||
|
||||
|
||||
app.config(['$routeProvider',
|
||||
function($routeProvider) {
|
||||
$routeProvider.
|
||||
when('/tournaments', {
|
||||
templateUrl: 'tournaments.html',
|
||||
controller: 'tournamentsController'
|
||||
}).
|
||||
// when('/phones/:phoneId', {
|
||||
// templateUrl: 'partials/phone-detail.html',
|
||||
// controller: 'PhoneDetailCtrl'
|
||||
// }).
|
||||
otherwise({
|
||||
redirectTo: '/tournaments'
|
||||
});
|
||||
}]);
|
||||
app.config(['$routeProvider', '$locationProvider', function($routeProvider,$locationProvider) {
|
||||
|
||||
$routeProvider.when('/', {
|
||||
templateUrl: 'home.html',
|
||||
});
|
||||
|
||||
$routeProvider.when('/tournaments', {
|
||||
templateUrl: 'tournaments-search.html',
|
||||
controller: 'tournamentsController'
|
||||
});
|
||||
|
||||
$routeProvider.when('/tournaments/:id', {
|
||||
templateUrl: 'tournaments-show.html',
|
||||
controller: 'tournamentController'
|
||||
});
|
||||
|
||||
$routeProvider.when('/about', {
|
||||
templateUrl: 'about.html',
|
||||
});
|
||||
|
||||
$routeProvider.when('/tutorials', {
|
||||
templateUrl: 'tutorials.html',
|
||||
});
|
||||
|
||||
$routeProvider.otherwise({redirectTo: '/'});
|
||||
|
||||
//this give me normal routes instead of /#/
|
||||
$locationProvider.html5Mode(true);
|
||||
}]);
|
||||
Reference in New Issue
Block a user