docs(upgrade): use a class for upgraded service (#18487) (#18487)

This makes the resulting use in Angular more ideomatic, since we can just
use the class type as the injection indicator.

PR Close #18487

PR Close #18487
This commit is contained in:
Peter Bacon Darwin
2017-08-17 13:56:04 +01:00
committed by Jason Aden
parent 4258c3d1df
commit bb6b59128f
2 changed files with 13 additions and 9 deletions

View File

@ -127,7 +127,7 @@ import {NgAdapterInjector} from './util';
*
* Let's say you have an AngularJS service:
*
* {@example upgrade/static/ts/full/module.ts region="ng1-title-case-service"}
* {@example upgrade/static/ts/full/module.ts region="ng1-text-formatter-service"}
*
* Then you should define an Angular provider to be included in your `NgModule` `providers`
* property.