diff --git a/.gitignore b/.gitignore index df612cd56e..88bd33c2c8 100644 --- a/.gitignore +++ b/.gitignore @@ -28,7 +28,7 @@ plnkr.html *.eplnkr.html eplnkr.html *plnkr.no-link.html -public/docs/*/latest/guide/cheatsheet.json +#public/docs/*/latest/guide/cheatsheet.json protractor-results.txt link-checker-results.txt *a2docs.css diff --git a/public/docs/dart/latest/guide/cheatsheet.json b/public/docs/dart/latest/guide/cheatsheet.json new file mode 100644 index 0000000000..9042609175 --- /dev/null +++ b/public/docs/dart/latest/guide/cheatsheet.json @@ -0,0 +1,527 @@ +{ + "currentEnvironment": "Dart", + "version": { + "raw": "2.0.0-rc.4", + "major": 2, + "minor": 0, + "patch": 0, + "prerelease": [ + "local" + ], + "build": "sha.47eb31d", + "version": "2.0.0-local", + "codeName": "snapshot", + "isSnapshot": true, + "full": "2.0.0-local+sha.47eb31d", + "branch": "master", + "commitSHA": "47eb31ddb21465e0ba65c0c09a1a39d2a5a304c8" + }, + "sections": [ + { + "name": "Bootstrapping", + "description": "

\n\nimport 'package:angular2/platform/browser.dart';

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

Bootstraps an application with MyAppComponent as the root component and configures the DI providers.

\n" + } + ], + "index": 0 + }, + { + "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": "