Skip to content

Instantly share code, notes, and snippets.

@piyushchauhan2011
Forked from gsans/gist:462fa27f1f9ea66c21b2
Last active August 29, 2015 14:14
Show Gist options
  • Save piyushchauhan2011/67e9a8aa118810362f22 to your computer and use it in GitHub Desktop.
Save piyushchauhan2011/67e9a8aa118810362f22 to your computer and use it in GitHub Desktop.
// Routing setup
.config(function ($routeProvider) {
$routeProvider
.when('/home', {
controller: 'homeCtrl',
templateUrl: 'home.tpl.html'
}).when('/users', {
controller: 'usersCtrl',
controllerAs: 'vm',
templateUrl: 'users.tpl.html',
resolve: {
load: ['injectCSS', function (injectCSS) {
return injectCSS.set("users", "users.css");
}]
}
}).otherwise({
// default page
redirectTo: '/home'
});
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment