I would like to use a specifically typed sammyjs file in combination with typescript to declare a route on my page
Javascript for the ad will look like this:>
Sammy(function () { this.get('#:foobar', function () {
While I have it.
var app: Sammy.Application = Sammy(); app.get('#:foobar', () => { //doStuff var baz = this.params.foobar; });
Obviously, the parameters are not in the context of 'this', so my question is more detailed: .. This is the correct way to determine sammy routes, and if so, how can I access the wheelchairs.
source share