Notice: The Monaca & Onsen UI Community Forum is shutting down.
For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.
Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.
Error: No provider for OnsNavigator!
kasim last edited by
When using ons-navigator inside ons-splitter provide below error
my source is below
- boot.ts :
please advice how to fix the problem. possible give us sample
- boot.ts :
@kasim This example is for vanilla and I don’t know Angular 2 well enough to chime it, but maybe it will point you in the right direction. http://tutorial.onsen.io/?framework=vanilla&category=Community tutorials&module=splitter_navigator
EdByrnee last edited by
@kasim Did you ever resolve this? I am running into similar issues with OnsNavigator and I’m not sure what I’m doing wrong.
I have checked your code.
SidePageComponentseems to try to inject an
OnsNavigatorinstance, but the ancestor components of
ons-navigatorin their templates.
So the hierarchical dependency injector of Angular could not find a corresponding provider for
OnsNavigatorinstance which registered in
ContentPageComponentand reported the error like
No provider for OnsNavigator.
You can fix this problem by connecting
ContentPageComponentvia a service.
The official guide for Angular component interaction is here: