From 533b722c6635c1d01119d5b5163476c83c772ee6 Mon Sep 17 00:00:00 2001 From: Peter Bacon Darwin Date: Thu, 5 Nov 2015 12:33:56 +0000 Subject: [PATCH] docs(*): move cheatsheet stuff into its own files --- .../angular2/docs/cheatsheet/bootstrapping.md | 56 +++++++++++++++++++ .../docs/cheatsheet/built-in-directives.md | 24 ++++++++ .../src/common/directives/core_directives.ts | 23 -------- modules/angular2/src/core/application.ts | 55 ------------------ 4 files changed, 80 insertions(+), 78 deletions(-) create mode 100644 modules/angular2/docs/cheatsheet/bootstrapping.md create mode 100644 modules/angular2/docs/cheatsheet/built-in-directives.md diff --git a/modules/angular2/docs/cheatsheet/bootstrapping.md b/modules/angular2/docs/cheatsheet/bootstrapping.md new file mode 100644 index 0000000000..b863e09470 --- /dev/null +++ b/modules/angular2/docs/cheatsheet/bootstrapping.md @@ -0,0 +1,56 @@ +@cheatsheetSection +@name Bootstrapping +@description +`import {bootstrap} from 'angular2/angular2';` + +@cheatsheetItem +``|`[value]` +Binds property `value` to the result of expression `firstName`. + +@cheatsheetItem +`
`|`[attr.role]` +Binds attribute `role` to the result of expression `myAriaRole`. + +@cheatsheetItem +`
`|`[class.extra-sparkle]` +Binds the presence of the css class `extra-sparkle` on the element to the truthiness of the expression `isDelightful`. + +@cheatsheetItem +`
`|`[style.width.px]` +Binds style property `width` to the result of expression `mySize` in pixels. Units are optional. + +@cheatsheetItem +`