(docs): removing `addProvider` from `UpgradeAdapter` (#11934)

The `addProvider` function in the `UpgradeAdapter` was deprecated in this [commit](d21331e902 (diff-77163e956a7842149f583846c1c01651)) and has been removed in final. Given this, the documentation for downgrading ng2 providers for use in ng1 is invalid.
This commit is contained in:
Austin 2016-09-27 13:10:45 -04:00 committed by Rado Kirov
parent 745e10e6d2
commit a241ab7c07
1 changed files with 0 additions and 2 deletions

View File

@ -480,7 +480,6 @@ export class UpgradeAdapter {
* var adapter = new UpgradeAdapter(); * var adapter = new UpgradeAdapter();
* adapter.upgradeNg1Provider('server'); * adapter.upgradeNg1Provider('server');
* adapter.upgradeNg1Provider('login', {asToken: Login}); * adapter.upgradeNg1Provider('login', {asToken: Login});
* adapter.addProvider(Example);
* *
* adapter.bootstrap(document.body, ['myExample']).ready((ref) => { * adapter.bootstrap(document.body, ['myExample']).ready((ref) => {
* var example: Example = ref.ng2Injector.get(Example); * var example: Example = ref.ng2Injector.get(Example);
@ -508,7 +507,6 @@ export class UpgradeAdapter {
* } * }
* *
* var adapter = new UpgradeAdapter(); * var adapter = new UpgradeAdapter();
* adapter.addProvider(Example);
* *
* var module = angular.module('myExample', []); * var module = angular.module('myExample', []);
* module.factory('example', adapter.downgradeNg2Provider(Example)); * module.factory('example', adapter.downgradeNg2Provider(Example));