parent
2b2ec380b7
commit
58ceaffca3
|
@ -671,7 +671,7 @@ figure
|
|||
+makeExample('upgrade/ts/adapter/app/js/1-to-2-providers/heroes.service.ts', null, 'heroes.service.ts')
|
||||
|
||||
:marked
|
||||
We can ugprade the service using the `UpgradeAdapter`'s `upgradeNg1Provider` method
|
||||
We can upgrade the service using the `UpgradeAdapter`'s `upgradeNg1Provider` method
|
||||
by giving it the name of the service. This adds the service into Angular 2's root injector.
|
||||
|
||||
+makeExample('upgrade/ts/adapter/app/js/1-to-2-providers/app.module.ts', 'register', 'app.module.ts')
|
||||
|
|
Loading…
Reference in New Issue