Skip to content

Instantly share code, notes, and snippets.

@alecklandgraf
Last active June 28, 2016 17:56
Show Gist options
  • Select an option

  • Save alecklandgraf/ae0d534fcb6167caa4ae1bc98b331a8f to your computer and use it in GitHub Desktop.

Select an option

Save alecklandgraf/ae0d534fcb6167caa4ae1bc98b331a8f to your computer and use it in GitHub Desktop.
hello component route
module.config(['$routeProvider', function ($routeProvider) {
$routeProvider
.when('/hello', {
template: '<hello-nav me="$resolve.me"></hello-nav>',
resolve: {
'me': ['Me', function (Me) {
return Me.query().$promise;
}]
}
});
}]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment