docs(API): 翻译完了 BrowserModule

This commit is contained in:
Zhicheng Wang 2018-09-04 09:31:32 +08:00
parent 391aed864a
commit ec886a90ef
2 changed files with 10 additions and 1 deletions

View File

@ -45,7 +45,7 @@
[x] | core/ViewContainerRef | 0.42
[x] | common/NgTemplateOutlet | 0.42
[x] | common/Location | 0.41
[ ] | platform-browser/BrowserModule | 0.40
[x] | platform-browser/BrowserModule | 0.40
[ ] | common/DecimalPipe | 0.40
[ ] | common/CurrencyPipe | 0.39
[ ] | router/RouterLinkActive | 0.38

View File

@ -37,6 +37,11 @@ export const INTERNAL_BROWSER_PLATFORM_PROVIDERS: StaticProvider[] = [
* @security Replacing built-in sanitization providers exposes the application to XSS risks.
* Attacker-controlled data introduced by an unsanitized provider could expose your
* application to XSS risks. For more detail, see the [Security Guide](http://g.co/ng/security).
*
* sanitization XSS
* XSS
* [](http://g.co/ng/security)。
*
* @experimental
*/
export const BROWSER_SANITIZATION_PROVIDERS: StaticProvider[] = [
@ -94,6 +99,7 @@ export const BROWSER_MODULE_PROVIDERS: StaticProvider[] = [
/**
* The ng module for the browser.
*
* 使 NgModule
*
*/
@NgModule({providers: BROWSER_MODULE_PROVIDERS, exports: [CommonModule, ApplicationModule]})
@ -110,6 +116,9 @@ export class BrowserModule {
* one is present on the page. The specified parameters must include an application id,
* which must match between the client and server applications.
*
* 使SSR
* id
*
* @experimental
*/
static withServerTransition(params: {appId: string}): ModuleWithProviders<BrowserModule> {