Incremental upgrading using UpgradeAdapter
Incremental upgrading can be done seamlessly using UpgradeAdapter
. UpgradeAdapter
is a service that can bootstrap and manage hybrid applications that support both Angular and AngularJS code. UpgradeAdapter
enables you to run both AngularJS and Angular code simultaneously. UpgradeAdapter
facilitates interoperability between components and services from one framework to another framework. The interoperability in Dependency Injection, the DOM, and change detection will be taken care of by UpgradeAdapter
.
Injecting AngularJS dependencies to Angular
We may come across a scenario where the business logic on AngularJS services or any built-in services, such as $location
or $timeout
, is to be injected to Angular code. This can be handled by upgrading the AngularJS provider to Angular and injecting it into Angular code wherever required.
Injecting Angular dependencies to AngularJS
Sometimes it may be necessary to downgrade Angular dependencies in order to use...