chore: update cheatsheet for new provider syntax (#9227)

This commit is contained in:
Jesús Rodríguez
2016-06-16 00:11:39 +02:00
committed by Naomi Black
parent 27024915e4
commit 54c577cfe0
4 changed files with 12 additions and 12 deletions

View File

@ -9,9 +9,9 @@ so the `@Directive` configuration applies to components as well{@endtarget}
@cheatsheetItem
syntax(ts dart):
`viewProviders: [MyService, provide(...)]`|`viewProviders:`
`viewProviders: [MyService, { provide: ... }]`|`viewProviders:`
syntax(js):
`viewProviders: [MyService, ng.core.provide(...)]`|`viewProviders:`
`viewProviders: [MyService, { provide: ... }]`|`viewProviders:`
description:
Array of dependency injection providers scoped to this component's view.