From 58dec1f30cedf42a3376b364ce5904a3921a0271 Mon Sep 17 00:00:00 2001 From: Zhicheng Wang Date: Thu, 2 Jun 2016 09:07:31 +0800 Subject: [PATCH] =?UTF-8?q?cookbook=20-=201=20to=202=20=E5=88=9D=E8=AF=91?= =?UTF-8?q?=E5=AE=8C=E6=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../docs/ts/latest/guide/template-syntax.jade | 668 +++++++++--------- 1 file changed, 334 insertions(+), 334 deletions(-) diff --git a/public/docs/ts/latest/guide/template-syntax.jade b/public/docs/ts/latest/guide/template-syntax.jade index e5f9cef707..1964f1fcf8 100644 --- a/public/docs/ts/latest/guide/template-syntax.jade +++ b/public/docs/ts/latest/guide/template-syntax.jade @@ -12,12 +12,12 @@ block includes 我们的Angular应用管理着用户之所见和所为,并通过组件的类实例和面向用户的模板来与用户交互。 Many of us are familiar with the component/template duality from our experience with model-view-controller (MVC) or model-view-viewmodel (MVVM). In Angular, the component plays the part of the controller/viewmodel, and the template represents the view. - + 从使用模型-视图-控制器(MVC)或模型-视图-视图模型(MVVM)的经验中,很多用户都熟悉了组件/模板这两个概念。 在Angular中,组件扮演着控制器或视图模型的角色,模板则扮演视图的角色。 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) @@ -74,7 +74,7 @@ p. ## HTML ## HTML HTML is the language of the Angular template. Our [QuickStart](../quickstart.html) application had a template that was pure HTML: - + HTML是Angular模板的“语言”。我们的[“快速起步”](../quickstart.html)应用就有一个模板是纯HTML的: code-example(language="html" escape="html"). @@ -82,19 +82,19 @@ code-example(language="html" escape="html"). :marked Almost all HTML syntax is valid template syntax. The `