{ "currentEnvironment": "TypeScript", "version": { "raw": "2.0.0-rc.1", "major": 2, "minor": 0, "patch": 0, "prerelease": [ "local" ], "build": "sha.48e03ae", "version": "2.0.0-local", "codeName": "snapshot", "isSnapshot": true, "full": "2.0.0-local+sha.48e03ae", "branch": "master", "commitSHA": "48e03ae748c0d68292380c4af2361faab5f6b497" }, "sections": [ { "name": "引导", "description": "

import {bootstrap} from 'angular2/platform/browser';\n\n

\n", "items": [ { "syntax": "bootstrap​(MyAppComponent, [MyService, provide(...)]);", "bold": [ "provide" ], "description": "

以MyAppComponent作为根组件引导应用,并且配置DI的各种供应商。

\n" } ], "index": 0 }, { "name": "模板语法", "description": "", "items": [ { "syntax": "", "bold": [ "[value]" ], "description": "

把属性value绑定到表达式firstName的结果。

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

role这个Attribute绑定到表达式 myAriaRole的结果。

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

把元素是否出现CSS类extra-sparkle,绑定到一个表达式isDelightful的结果是否为真。

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

把样式的width属性绑定到表达式mySize的结果,以px为单位。这个单位是可选的。

\n" }, { "syntax": "