docs(cheatsheet): update javascript sections (#11070)
This commit is contained in:
parent
dc6f72e963
commit
cc79dcac7f
|
@ -3,7 +3,7 @@ Built-in directives
|
|||
@cheatsheetIndex 3
|
||||
@description
|
||||
{@target ts}`import { CommonModule } from '@angular/common';`{@endtarget}
|
||||
{@target js}Available from the `ng.common.CommonModule` namespace{@endtarget}
|
||||
{@target js}Available using the `ng.common.CommonModule` module{@endtarget}
|
||||
{@target dart}Available using `platform_directives` in pubspec{@endtarget}
|
||||
|
||||
@cheatsheetItem
|
||||
|
|
|
@ -3,7 +3,7 @@ Forms
|
|||
@cheatsheetIndex 4
|
||||
@description
|
||||
{@target ts}`import { FormsModule } from '@angular/forms';`{@endtarget}
|
||||
{@target js}Available from `ng.forms.FormsModule`{@endtarget}
|
||||
{@target js}Available using the `ng.forms.FormsModule` module{@endtarget}
|
||||
{@target dart}Available using `platform_directives` in pubspec{@endtarget}
|
||||
|
||||
@cheatsheetItem
|
||||
|
|
|
@ -2,15 +2,21 @@
|
|||
NgModules
|
||||
@cheatsheetIndex 1
|
||||
@description
|
||||
{@target ts js}`import { NgModule } from '@angular/core';`{@endtarget}
|
||||
{@target ts}`import { NgModule } from '@angular/core';`{@endtarget}
|
||||
{@target js}Available from the `ng.core` namespace{@endtarget}
|
||||
|
||||
@cheatsheetItem
|
||||
syntax(ts js):
|
||||
`@NgModule({ declarations: ... , imports: ..., exports: ..., bootstrap: ...})
|
||||
syntax(ts):
|
||||
`@NgModule({ declarations: ..., imports: ..., exports: ..., bootstrap: ...})
|
||||
class MyModule {}`|`NgModule`
|
||||
description:
|
||||
Defines a module that contains components, directives, pipes and providers.
|
||||
|
||||
syntax(js):
|
||||
`ng.core.NgModule({declarations: ..., imports: ..., exports: ..., bootstrap: ...}).
|
||||
class({ constructor: function() {}})`
|
||||
description:
|
||||
Defines a module that contains components, directives, pipes and providers.
|
||||
|
||||
@cheatsheetItem
|
||||
syntax(ts js):
|
||||
|
@ -19,12 +25,18 @@ description:
|
|||
List of components, directives and pipes that belong to this module.
|
||||
|
||||
@cheatsheetItem
|
||||
syntax(ts js):
|
||||
syntax(ts):
|
||||
`imports: [BrowserModule, SomeOtherModule]`|`imports:`
|
||||
description:
|
||||
List of modules that are being imported into this module. Everything from the imported modules will
|
||||
be available to `declarations` of this module.
|
||||
|
||||
syntax(js):
|
||||
`imports: [ng.platformBrowser.BrowserModule, SomeOtherModule]`|`imports:`
|
||||
description:
|
||||
List of modules that are being imported into this module. Everything from the imported modules will
|
||||
be available to `declarations` of this module.
|
||||
|
||||
@cheatsheetItem
|
||||
syntax(ts js):
|
||||
`exports: [MyRedComponent, MyDatePipe]`|`exports:`
|
||||
|
|
Loading…
Reference in New Issue