I have an application that uses angular 1.x. I am working on migrating it
to angular 2.0.
There are many directives in angular 1.x app that have dependencies on
custom angular 1 services and angular services.
1) Can I use the approach of migrating the component to angular 2 without
updating the dependent services?
2) How can I add a angular 1.x service in angular 2.0 component.
3) Also how to use $rootScope in angular 2?
I read about upgrade adpater upgradeNg1Provider method. Example I have a
service defined in services/myservice.js file. In a typescript file i added
it to angular 2 injector upgradeAdapter.upgradeNg1Provider('myservice');
Now how to use this in a angular 2 component.
Just doing this gives me error - at RuntimeCompiler.resolveComponent
Evaluating http://localhost:3000/main.js
Error loading http://localhost:3000/main.js
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.