Closed zhangmeng712 closed 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
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.
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