Skip to content

Instantly share code, notes, and snippets.

@jakewhiteley
Created June 6, 2015 15:16
Show Gist options
  • Save jakewhiteley/da0c80a16f93ddcfdd36 to your computer and use it in GitHub Desktop.
Save jakewhiteley/da0c80a16f93ddcfdd36 to your computer and use it in GitHub Desktop.
App.View('Tags', {
options: {
url: AppPath + 'views/tag.html',
route: AppPath +'tag/{{tag}}'
},
tag: 'default',
routed: function (params) {
this.tag = params.tag;
// returns an empty object
console.log(this._application._router._currentRoute)
// Uncaught TypeError: Cannot read property 'route' of undefined
console.log(this._application._router._getUrlParams())
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment