Skip to content

Instantly share code, notes, and snippets.

@PetersonDave
Created November 25, 2013 04:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PetersonDave/7636551 to your computer and use it in GitHub Desktop.
Save PetersonDave/7636551 to your computer and use it in GitHub Desktop.
routing with Sitecore item version number
function getRoutes() {
return [
{
url: '/profiles',
config: {
templateUrl: 'Views/allprofiles?v=4',
controller: 'allprofiles'
}
}, {
url: '/profiles/:profileId',
config: {
templateUrl: 'Views/modifyprofile?v=6',
controller: 'modifyprofile'
}
}, {
url: '/',
config: {
templateUrl: 'Views/main?v=2',
controller: 'main'
}
}];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment