-
Notifications
You must be signed in to change notification settings - Fork 12k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getting errors when i generate a route #629
Comments
I had the same issue. You need to add ROUTER_PROVIDERS to your bootstrap statement in main.ts
This worked for me |
hi @yaede7 , |
So i realized this i have to add a router link to my main page to get the routes to work. Now if i type http://localhost:4200/heroes i actually get to the heroes page. If i remove the link from my main page typing it in address bar does not load the route content. |
So you can't deep link without having a router link somewhere? Is this a bug? |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
i generated a route using using
ng generate route ROUTE
if i open the app i get lots of errors like this
browser_adapter.js:77 Error: DI Exception
at NoProviderError.BaseException as constructor
at NoProviderError.AbstractProviderError as constructor
at new NoProviderError (reflective_exceptions.js:75)
at ReflectiveInjector_.throwOrNull (reflective_injector.js:776)
at ReflectiveInjector.getByKeyDefault (reflective_injector.js:804)
at ReflectiveInjector.getByKey (reflective_injector.js:767)
at ReflectiveInjector.get (reflective_injector.js:576)
at ElementInjector.get (element_injector.js:23)
at DebugAppView._View_DemocracyAppComponent0.createInternal (DemocracyAppComponent.template.js:24)
at DebugAppView.AppView.create (view.js:66)
The text was updated successfully, but these errors were encountered: