docs(upgrade): fix UpgradeAdapter examples

closes #12675
This commit is contained in:
Peter Bacon Darwin 2016-12-08 07:29:04 +00:00 committed by Victor Berchet
parent 42d9998cbb
commit 84400bcc86
1 changed files with 5 additions and 5 deletions

View File

@ -278,7 +278,7 @@ export class UpgradeAdapter {
* ### Example
*
* ```
* const upgradeAdapter = new UpgradeAdapter();
* const upgradeAdapter = new UpgradeAdapter(MyNg2Module);
*
* // configure the adapter with upgrade/downgrade components and services
* upgradeAdapter.downgradeNg2Component(MyComponent);
@ -334,7 +334,7 @@ export class UpgradeAdapter {
* ### Example
*
* ```
* const adapter = new UpgradeAdapter();
* const adapter = new UpgradeAdapter(MyNg2Module);
* const module = angular.module('myExample', []);
* module.directive('ng2', adapter.downgradeNg2Component(Ng2));
*
@ -421,7 +421,7 @@ export class UpgradeAdapter {
* module.service('server', Server);
* module.service('login', Login);
*
* const adapter = new UpgradeAdapter();
* const adapter = new UpgradeAdapter(MyNg2Module);
* adapter.upgradeNg1Provider('server');
* adapter.upgradeNg1Provider('login', {asToken: Login});
*
@ -450,7 +450,7 @@ export class UpgradeAdapter {
* class Example {
* }
*
* const adapter = new UpgradeAdapter();
* const adapter = new UpgradeAdapter(MyNg2Module);
*
* const module = angular.module('myExample', []);
* module.factory('example', adapter.downgradeNg2Provider(Example));
@ -480,7 +480,7 @@ export class UpgradeAdapter {
* ### Example
*
* ```
* const upgradeAdapter = new UpgradeAdapter();
* const upgradeAdapter = new UpgradeAdapter(MyNg2Module);
* upgradeAdapter.declareNg1Module(['heroApp']);
* ```
*/