-
Notifications
You must be signed in to change notification settings - Fork 74
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
TypeError: $view.viewConfigFactory is not a function -- while upgrading application with ui.router.upgrade #4
Comments
My best guess is that the version of ui-router isn't Here's a systemjs setup based on the code you've pasted @ashishmangla Extract the ZIP, then run:
Note: systemjs setups can be tricky to configure properly |
@christopherthielen the hybrid Example is very cool you should provide such an "easy" example too on your ng1-to-ng2 examples Page. Because the extended example is a bit too complex to just try it out and I try to get this working, but its not working yet in my current ng1/ng2 app, could you please extend the hybrid example with one or two ng2 route definitions and the components for it. and you need to update the system js to the newest ng2 version like
|
Anyone experiencing this issue, feel free to try again with Closing this issue because I think the latest version doesn't suffer this problem. See the sample app for a working setup: https://github.com/ui-router/sample-app-ng1-to-ng2 @squadwuschel I agree a simpler example would be nice, will track your issue #21 |
We have an ng1 + ui-router application and want to inject ng2 components in that. But on injecting ng2 libraries and bootstraping the application using NgUpgrade.bootstrap break the existing routes/states of the application. So tried after injecting this ng1-to-ng2 library but getting below error.
Angular version : 1.5.6
Here we just want to run our NG1+ui-router application upgraded with the NG2 + Ng1-to-ng2 library and ngupgrade bootstrap. Later on will inject this ui-router in NG2 components as well.
Example:
index.html
main.ts
system-config.js
Error Message
package.json
Please let me know if i miss anything which cause this error message.
The text was updated successfully, but these errors were encountered: