Skip to content

Instantly share code, notes, and snippets.

@omarkdev
Created October 31, 2016 13:02
Show Gist options
  • Save omarkdev/9cda9e4427e2d194be9337cb918b5277 to your computer and use it in GitHub Desktop.
Save omarkdev/9cda9e4427e2d194be9337cb918b5277 to your computer and use it in GitHub Desktop.
$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"
	});
}]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment