vue-meteor icon indicating copy to clipboard operation
vue-meteor copied to clipboard

typescript unresolved variable $router

Open christophmayrhofer opened this issue 7 years ago • 0 comments

It seems that the definitions are not registered with Vue for me.

I get

unresolved variable $router

when I try to access it within the component:

this.$router

I have to use an ugly hack to make it compile

this['$router']

or

(this as any).$router

christophmayrhofer avatar Jan 03 '18 11:01 christophmayrhofer