diff --git a/public/docs/ts/latest/guide/_data.json b/public/docs/ts/latest/guide/_data.json index 8205cd7070..346d61a778 100644 --- a/public/docs/ts/latest/guide/_data.json +++ b/public/docs/ts/latest/guide/_data.json @@ -14,7 +14,12 @@ "title": "User Input", "intro": "DOM events drive user input in Angular. You can use the native events like click, mouseover, and keyup. Angular uses a special syntax to register events to DOM elements. This section covers all the ins and outs of using the event syntax." }, - + + "template-syntax": { + "title": "Template Syntax", + "intro": "How to write templates that display data and consume user events with the help of data binding." + }, + "glossary": { "title": "Glossary", "intro": "Brief definitions of the most important words in the Angular 2 vocabulary" diff --git a/public/docs/ts/latest/guide/forms.jade b/public/docs/ts/latest/guide/forms.jade new file mode 100644 index 0000000000..f87192b595 --- /dev/null +++ b/public/docs/ts/latest/guide/forms.jade @@ -0,0 +1,9 @@ +include ../../../../_includes/_util-fns + +:markdown + # Forms + It's coming soon! + +.l-main-section +:markdown + ## What's not to love? \ No newline at end of file diff --git a/public/docs/ts/latest/guide/template-syntax.jade b/public/docs/ts/latest/guide/template-syntax.jade index 1b9b8e3811..dcee33f513 100644 --- a/public/docs/ts/latest/guide/template-syntax.jade +++ b/public/docs/ts/latest/guide/template-syntax.jade @@ -1,7 +1,1251 @@ include ../../../../_includes/_util-fns +:markdown + # Template Syntax + Our Angular application manages what the user sees and does through the interaction of a Component class instance and its user-facing template. + + Many of us are familiar with the Component/Template duality from our experience with Model-View-Controller or Model-View-ViewModel. In Angular, the Component plays the part of the Controller/ViewModel and the Template represents the view. + + Let’s find out what it takes to write a Template for our view. + + We’ll cover these basic elements of Template Syntax + + >[HTML](#html) + + >[Interpolation](#interpolation) + + >[Template expressions](#template-expressions) + + >[Binding syntax](#binding-syntax) + + >[Property Binding](#property-binding) + + >[Attribute, Class and Style Bindings](#other-bindings) + + >[Event Binding](#event-binding) + + >[Two-way data binding with `NgModel`](#ng-model) + + >[Built-in Directives](#directives) + + >[* and <template>](#star-template) + + >[Local variables](#local-vars) + + >[Input and Output Properties](#inputs-outputs) + + >[Template Expression Operators](#expression-ops) + .l-main-section +:markdown + ## HTML + HTML is the language of the Angular template. Our “[QuickStart](./quickstart.html)” application had a template that was pure HTML + +code-example(format="" language="html" escape="html"). +

My First Angular Application

+:markdown + Almost all HTML syntax is valid template syntax. The `