Created
June 6, 2015 15:16
-
-
Save jakewhiteley/da0c80a16f93ddcfdd36 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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