$app.config(['$routeProvider', function($routeProvider){
$routeProvider.when('/', {
templateUrl : "/views/welcome.html",
name: "Início",
controller: "WelcomeController"
})
.when("/talkers", {
templateUrl : "/views/talkers.html",
name: "Palestrantes"
})
.when("/categories", {
templateUrl : "/views/categories.html",
name:" Categorias",
controller: "CategoryController"
})
.when("/recommended", {
templateUrl : "/views/recommended.html",
name: "Recomendado",
})
.when("/most_watched", {
templateUrl : "/views/most_watched.html",
name: "Mais Visto"
})
.when("/favorites", {
templateUrl : "/views/favorites.html",
name: "Favoritos"
})
.otherwise({
templateUrl : "/views/404.html",
name: "Error"
});
}]);
Created
October 31, 2016 13:02
-
-
Save omarkdev/9cda9e4427e2d194be9337cb918b5277 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment