erikringsmuth / app-router

Router for Web Components
https://erikringsmuth.github.io/app-router/
MIT License
610 stars 83 forks source link

document.querySelector('app-router').go api does not work in IE10 or Chrome 32.x #66

Closed zhangmeng712 closed 9 years ago

zhangmeng712 commented 9 years ago

I use the app-router.go api and the console alert error as "Object does not support property or method 'go' I use document.querySelector('app-router').go('/pack'); after the app-router tag to set default path directly to http://www.xx.com#/pack

erikringsmuth commented 9 years ago

The app-router might not be defined at the point when you're calling it. These links might help.

https://erikringsmuth.github.io/app-router/#/databinding/#callbacks

https://erikringsmuth.github.io/app-router/#/api#init

erikringsmuth commented 9 years ago

Closing for now since I can't reproduce it. If you've got some example code with the error, open the issue again and I'll see if I can figure it out.