Skip to content

Instantly share code, notes, and snippets.

@ghengeveld
Created October 2, 2013 12:04
Show Gist options
  • Save ghengeveld/6792661 to your computer and use it in GitHub Desktop.
Save ghengeveld/6792661 to your computer and use it in GitHub Desktop.
Dynamic templateUrl for Angular UI Router
$stateProvider.state('projects.edit.section', {
url: '/:sectionCode',
templateUrl: function(stateParams) {
return 'partials/project/' + stateParams.sectionCode + '.html';
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment