downgradeInjectable()

downgradeInjectable

Experimental Function

What it does

Part of the upgrade/static library for hybrid upgrade apps that support AoT compilation

Allow an Angular 2+ service to be accessible from Angular 1.

How to use

First ensure that the service to be downgraded is provided in an NgModule that will be part of the upgrade application. For example, let's assume we have defined HeroesService