From 70e77a29ef92e09dd56c3ff33e1bbd13b2467ce1 Mon Sep 17 00:00:00 2001 From: Zhicheng Wang Date: Sat, 15 Apr 2017 22:33:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E8=AE=A2=E5=AE=8Csecurity?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/docs/js/latest/guide/cheatsheet.json | 571 +------------------- public/docs/ts/latest/guide/cheatsheet.json | 565 +------------------ public/docs/ts/latest/guide/security.jade | 13 +- 3 files changed, 27 insertions(+), 1122 deletions(-) diff --git a/public/docs/js/latest/guide/cheatsheet.json b/public/docs/js/latest/guide/cheatsheet.json index 5485644038..3c23adb578 100644 --- a/public/docs/js/latest/guide/cheatsheet.json +++ b/public/docs/js/latest/guide/cheatsheet.json @@ -1,573 +1,20 @@ { "currentEnvironment": "JavaScript", "version": { - "raw": "2.4.5", - "major": 2, - "minor": 4, - "patch": 6, + "raw": "4.0.0-beta.5", + "major": 4, + "minor": 0, + "patch": 0, "prerelease": [ "local" ], - "build": "sha.6af595d", - "version": "2.4.6-local", + "build": "sha.0ce88ec", + "version": "4.0.0-local", "codeName": "snapshot", "isSnapshot": true, - "full": "2.4.6-local+sha.6af595d", + "full": "4.0.0-local+sha.0ce88ec", "branch": "master", - "commitSHA": "6af595d7bd46d8fd0e44d6fd1c9719dff58464ff" + "commitSHA": "0ce88ece13bbfe82dc0b19b6608dab206ea9800b" }, - "sections": [ - { - "name": "Bootstrapping", - "description": "

\nAvailable from the ng.platformBrowserDynamic namespace

\n", - "items": [ - { - "syntax": "document.addEventListener('DOMContentLoaded', function() {\n ng.platformBrowserDynamic\n .platformBrowserDynamic()\n .bootstrapModule(app.AppModule);\n});", - "bold": [ - "platformBrowserDynamic().bootstrapModule" - ], - "description": "

Bootstraps the app, using the root component from the specified NgModule. Must be wrapped in the event listener to fire when the page loads.

\n" - } - ], - "index": 0 - }, - { - "name": "NgModules", - "description": "

\nAvailable from the ng.core namespace

\n", - "items": [ - { - "syntax": "ng.core.NgModule({declarations: ..., imports: ...,\n exports: ..., providers: ..., bootstrap: ...}).\nClass({ constructor: function() {}})", - "bold": [], - "description": "

Defines a module that contains components, directives, pipes, and providers.

\n" - }, - { - "syntax": "declarations: [MyRedComponent, MyBlueComponent, MyDatePipe]", - "bold": [ - "declarations:" - ], - "description": "

List of components, directives, and pipes that belong to this module.

\n" - }, - { - "syntax": "imports: [ng.platformBrowser.BrowserModule, SomeOtherModule]", - "bold": [ - "imports:" - ], - "description": "

List of modules to import into this module. Everything from the imported modules\nis available to declarations of this module.

\n" - }, - { - "syntax": "exports: [MyRedComponent, MyDatePipe]", - "bold": [ - "exports:" - ], - "description": "

List of components, directives, and pipes visible to modules that import this module.

\n" - }, - { - "syntax": "providers: [MyService, { provide: ... }]", - "bold": [ - "providers:" - ], - "description": "

List of dependency injection providers visible both to the contents of this module and to importers of this module.

\n" - }, - { - "syntax": "bootstrap: [MyAppComponent]", - "bold": [ - "bootstrap:" - ], - "description": "

List of components to bootstrap when this module is bootstrapped.

\n" - } - ], - "index": 1 - }, - { - "name": "Template syntax", - "description": "", - "items": [ - { - "syntax": "", - "bold": [ - "[value]" - ], - "description": "

Binds property value to the result of expression firstName.

\n" - }, - { - "syntax": "
", - "bold": [ - "[attr.role]" - ], - "description": "

Binds attribute role to the result of expression myAriaRole.

\n" - }, - { - "syntax": "
", - "bold": [ - "[class.extra-sparkle]" - ], - "description": "

Binds the presence of the CSS class extra-sparkle on the element to the truthiness of the expression isDelightful.

\n" - }, - { - "syntax": "
", - "bold": [ - "[style.width.px]" - ], - "description": "

Binds style property width to the result of expression mySize in pixels. Units are optional.

\n" - }, - { - "syntax": "