From b6717c73bdca75e876ed127183ef095a9d1ae456 Mon Sep 17 00:00:00 2001 From: Kathy Walrath Date: Tue, 3 Mar 2015 17:43:26 -0800 Subject: [PATCH] incorporate Rado's review comments --- public/docs/dart/latest/quickstart.jade | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/public/docs/dart/latest/quickstart.jade b/public/docs/dart/latest/quickstart.jade index 58a4981f3d..f76fe7c0d9 100644 --- a/public/docs/dart/latest/quickstart.jade +++ b/public/docs/dart/latest/quickstart.jade @@ -11,7 +11,7 @@ p. p. Create a new directory, and put a file named - pubspec.yaml file in it. + pubspec.yaml in it. pre.prettyprint code. @@ -49,8 +49,8 @@ p. p. Note: - If you're using Dart 1.9, then your version of angular2 - will be higher than alpha 6. + If you're using Dart's Dev channel, then your version of angular2 + will be higher than alpha 6. That's fine. // PENDING: Update once 1.9 is on stable channel. // TODO: Convert the above to a callout. @@ -108,25 +108,25 @@ p. // [PENDING: add line numbers once we can specify where they start] p. - The code you just added creates a component—a custom element—that + The code you just added creates a component that has the tag <my-app>. The Dart code for an Angular component consists of a class (the component controller) that has @Component and @Template annotations. - // PENDING: Is that correct??? - .l-sub-section h3 Annotations p. - The @Component annotation defines the HTML tag for the component (the selector value). + The @Component annotation defines + the HTML tag for the component by specifying the component's CSS selector. p. - The @Template annotation defines the HTML to apply to the - component. This component uses an inline template, but you can also have - an external template. To use an external template, specify a url property + The @Template annotation defines the HTML that + represents the component. This component uses an inline template, + but you can also have an external template. To use an external template, + specify a url property and give it the path to the HTML file. pre.prettyprint @@ -193,7 +193,7 @@ p. p. This code adds a main() function that calls Angular's bootstrap() function. - The argument to bootstrap() is the name of the app class + The argument to bootstrap() is the name of the component class you defined above. p.