diff --git a/public/docs/dart/latest/api/_data.json b/public/docs/dart/latest/api/_data.json deleted file mode 100644 index 4b375156fc..0000000000 --- a/public/docs/dart/latest/api/_data.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "index" : { - "title" : "API 2.0 Preview" - } -} \ No newline at end of file diff --git a/public/docs/dart/latest/api/index.jade b/public/docs/dart/latest/api/index.jade deleted file mode 100644 index 6954ca79c5..0000000000 --- a/public/docs/dart/latest/api/index.jade +++ /dev/null @@ -1,13 +0,0 @@ -:marked - > **WARNING:** API documentation is preliminary and subject to change. - - > **Known issues:** Although this generated API reference displays Dart - APIs, individual pages sometimes describe TypeScript APIs accompanied with - TypeScript code. The angular.io issue tracker contains [all known - issues][api-issues]; if you notice others, please [report - them][new-issue]. Thanks! - - [new-issue]: https://github.com/angular/angular.io/issues/new?labels=dart,api&title=%5BDart%5D%5BAPI%5D%20 - [api-issues]: https://github.com/angular/angular.io/issues?q=label%3Aapi+label%3Adart - -api-list(src="api-list.json" lang="dart") diff --git a/public/docs/ts/latest/cheatsheet.jade b/public/docs/ts/latest/cheatsheet.jade index eec36cfb3f..2c5b14e48b 100644 --- a/public/docs/ts/latest/cheatsheet.jade +++ b/public/docs/ts/latest/cheatsheet.jade @@ -1,4 +1,4 @@ - var base = current.path[4] ? '.' : './guide'; .l-content-small.grid-fluid.docs-content.cheatsheet - ngio-cheatsheet(src= base + '/cheatsheet.json') + ngio-cheatsheet(src= base + '/cheatsheet-cn.json') diff --git a/public/docs/ts/latest/guide/cheatsheet-cn.json b/public/docs/ts/latest/guide/cheatsheet-cn.json index 0aa17f1132..457e41ffb9 100644 --- a/public/docs/ts/latest/guide/cheatsheet-cn.json +++ b/public/docs/ts/latest/guide/cheatsheet-cn.json @@ -1,28 +1,28 @@ { "currentEnvironment": "TypeScript", "version": { - "raw": "2.0.0-rc.5", + "raw": "2.0.0", "major": 2, "minor": 0, - "patch": 0, + "patch": 1, "prerelease": [ "local" ], - "build": "sha.8c6f6c1", - "version": "2.0.0-local", + "build": "sha.efc7326", + "version": "2.0.1-local", "codeName": "snapshot", "isSnapshot": true, - "full": "2.0.0-local+sha.8c6f6c1", + "full": "2.0.1-local+sha.efc7326", "branch": "master", - "commitSHA": "8c6f6c173da20113d467e57fd4ee5ab06d0a056b" + "commitSHA": "efc7326926b826dd33eeb43db391afd7c0b03ab8" }, "sections": [ { "name": "引导", - "description": "

import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\n\n

\n", + "description": "

import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\n

\n", "items": [ { - "syntax": "platformBrowserDynamic().bootstrapModule(MyAppModule);", + "syntax": "platformBrowserDynamic().bootstrapModule(AppModule);", "bold": [ "platformBrowserDynamic().bootstrapModule" ], @@ -36,7 +36,7 @@ "description": "

import { NgModule } from '@angular/core';\n

\n", "items": [ { - "syntax": "@NgModule({ declarations: ..., imports: ..., exports: ..., bootstrap: ...})\nclass MyModule {}", + "syntax": "@NgModule({ declarations: ..., imports: ...,\n exports: ..., providers: ..., bootstrap: ...})\nclass MyModule {}", "bold": [ "NgModule" ], @@ -156,11 +156,11 @@ "description": "

*符号表示当前元素将被转变成一个内嵌模板。等价于:\n<template [myUnless]="myExpression"><p>...</p></template>

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

Card No.: {{cardNumber | myCreditCardNumberFormatter}}

", + "syntax": "

Card No.: {{cardNumber | myCardNumberFormatter}}

", "bold": [ - "{{cardNumber | myCreditCardNumberFormatter}}" + "{{cardNumber | myCardNumberFormatter}}" ], - "description": "

通过名叫myCreditCardNumberFormatter的管道,转换表达式的当前值cardNumber

\n" + "description": "

通过名叫myCardNumberFormatter的管道,转换表达式的当前值cardNumber

\n" }, { "syntax": "

Employer: {{employer?.companyName}}

", @@ -188,7 +188,7 @@ }, { "name": "内置指令", - "description": "

import { CommonModule } from '@angular/common';\n\n

\n", + "description": "

import { CommonModule } from '@angular/common';\n

\n", "items": [ { "syntax": "
", @@ -226,7 +226,7 @@ }, { "name": "表单", - "description": "

import { FormsModule } from '@angular/forms';\n\n

\n", + "description": "

import { FormsModule } from '@angular/forms';\n

\n", "items": [ { "syntax": "", @@ -240,7 +240,7 @@ }, { "name": "类装饰器", - "description": "

import { Directive, ... } from '@angular/core';\n\n

\n", + "description": "

import { Directive, ... } from '@angular/core';\n

\n", "items": [ { "syntax": "@Component({...})\nclass MyComponent() {}", @@ -275,7 +275,7 @@ }, { "name": "指令配置", - "description": "

@Directive({ property1: value1, ... })\n\n

\n", + "description": "

@Directive({ property1: value1, ... })\n

\n", "items": [ { "syntax": "selector: '.cool-button:not(a)'", @@ -333,7 +333,7 @@ }, { "name": "供指令类或组件类用的字段装饰器。", - "description": "

import { Input, ... } from '@angular/core';\n\n

\n", + "description": "

import { Input, ... } from '@angular/core';\n

\n", "items": [ { "syntax": "@Input() myProperty;", @@ -466,7 +466,7 @@ }, { "name": "依赖注入配置", - "description": "

\n", + "description": "", "items": [ { "syntax": "{ provide: MyService, useClass: MyMockService }", @@ -497,7 +497,7 @@ }, { "name": "路由与导航", - "description": "

import { Routes, RouterModule, ... } from '@angular/router';\n\n

\n", + "description": "

import { Routes, RouterModule, ... } from '@angular/router';\n

\n", "items": [ { "syntax": "const routes: Routes = [\n { path: '', component: HomeComponent },\n { path: 'path/:routeParam', component: MyComponent },\n { path: 'staticPath', component: ... },\n { path: '**', component: ... },\n { path: 'oldPath', redirectTo: '/staticPath' },\n { path: ..., component: ..., data: { message: 'Custom' } }\n]);\n\nconst routing = RouterModule.forRoot(routes);", @@ -523,7 +523,7 @@ { "syntax": "", "bold": [], - "description": "

The provided class(es) will be added to the element when the routerLink becomes the current active route.

\n" + "description": "

routerLink被激活时,就把指定的CSS类添加到该元素上。

\n" }, { "syntax": "class CanActivateGuard implements CanActivate {\n canActivate(\n route: ActivatedRouteSnapshot,\n state: RouterStateSnapshot\n ): Observable|Promise|boolean { ... }\n}\n\n{ path: ..., canActivate: [CanActivateGuard] }", @@ -540,7 +540,7 @@ "description": "

一个用来定义类的接口,路由器在导航后会首先调用它来决定是否应该取消该组件的激活状态。应该返回布尔值或能解析为布尔值的可观察对象(Observable)或承诺(Promise)。

\n" }, { - "syntax": "class CanActivateChildGuard implements CanActivateChild {\n canActivateChild(\n route: ActivatedRouteSnapshot,\n state: RouterStateSnapshot\n ): Observable|Promise|boolean { ... }\n}\n\n{ path: ..., canActivateChild: [CanActivateGuard], children: ... }", + "syntax": "class CanActivateChildGuard implements CanActivateChild {\n canActivateChild(\n route: ActivatedRouteSnapshot,\n state: RouterStateSnapshot\n ): Observable|Promise|boolean { ... }\n}\n\n{ path: ..., canActivateChild: [CanActivateGuard],\n children: ... }", "bold": [ "CanActivateChild" ], @@ -559,31 +559,6 @@ "CanLoad" ], "description": "

一个用来定义类的接口,路由器会首先调用它来决定一个延迟加载的模块是否应该被加载。应该返回布尔值或能解析为布尔值的可观察对象(Observable)或承诺(Promise)。

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

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

.

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

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

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

\n" } ], "index": 11