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

@ -8,11 +8,11 @@ Bootstrapping
@cheatsheetItem
syntax(ts dart):
`bootstrap(MyAppComponent, [MyService, provide(...)]);`|`provide`
`bootstrap(MyAppComponent, [MyService, { provide: ... }]);`|`provide`
syntax(js):
`document.addEventListener('DOMContentLoaded', function () {
ng.platform.browser.bootstrap(MyAppComponent,
[MyService, ng.core.provide(...)]);
[MyService, { provide: ... }]);
});`|`provide`
description:
Bootstraps an application with MyAppComponent as the root component and configures the DI providers. {@target js}Must be wrapped in the event listener to fire when the page loads.{@endtarget}