From de848ac43798694c07dbb6df266141ce22e13421 Mon Sep 17 00:00:00 2001 From: Kathy Walrath Date: Tue, 14 Apr 2015 11:09:54 -0700 Subject: [PATCH] Update Dart quick start to angular2 alpha 19 --- public/docs/dart/latest/quickstart.jade | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/public/docs/dart/latest/quickstart.jade b/public/docs/dart/latest/quickstart.jade index 4f1c04c69e..1c2c9d90e2 100644 --- a/public/docs/dart/latest/quickstart.jade +++ b/public/docs/dart/latest/quickstart.jade @@ -26,14 +26,16 @@ p. > vim pubspec.yaml # Use your favorite editor! p. - In pubspec.yaml, add the angular2 and browser packages as dependencies: + In pubspec.yaml, add the angular2 and browser packages as dependencies. + Angular 2 is changing rapidly, so specify an exact version: + 2.0.0-alpha.19. pre.prettyprint.linenums.lang-basic code. name: hello_world version: 0.0.1 dependencies: - angular2: ">=2.0.0-alpha.6 <3.0.0" + angular2: 2.0.0-alpha.19 browser: any p. In the same directory, run pub get @@ -44,21 +46,13 @@ p. code. > pub get Resolving dependencies... (2.7s) - + analyzer 0.24.1 (0.25.0-dev.3 available) - ... more messages ... - Changed 21 dependencies! - Precompiling dependencies... - Loading source assets... - Precompiled dart_style. + # ... messages ... + + angular2 2.0.0-alpha.19 + # ... more messages ... // PENDING: Create template? Link to pub/pubspec docs? // Is browser really needed? - .alert.is-helpful. - Depending on your version of Dart and the latest version of angular2, - your messages are probably going to be different from what's shown above. - That's fine. - // STEP 2 - Import Angular ########################## .l-main-section @@ -102,8 +96,8 @@ p. @Component( selector: 'my-app' ) - @Template( - inline: '<h1>Hello {{ name }}</h1>' + @View( + template: '<h1>Hello {{ name }}</h1>' ) class AppComponent { String name = 'Alice';