From eafd7db119cee76fb34dcf9210f1bccf4a75104b Mon Sep 17 00:00:00 2001 From: Patrice Chalin Date: Wed, 20 Jul 2016 15:51:23 -0700 Subject: [PATCH] chore(ng2/dart): update from beta.1x to beta.18 (#1941) * chore(ng2/dart): update from beta.1x to beta.18 Update made to all `pubspec.yaml` files and to relevant prose. Note that pipes was back a beta.15; the rest were at beta.17. * chore(pipes/dart): update ngFor microsyntax and transform method param Updates to pipe example source code: - Pipe `transform()` method parameters - `ngFor` microsyntax, from `#` to `let` --- public/docs/_examples/architecture/dart/pubspec.yaml | 2 +- .../_examples/attribute-directives/dart/pubspec.yaml | 2 +- .../docs/_examples/component-styles/dart/pubspec.yaml | 2 +- .../_examples/dependency-injection/dart/pubspec.yaml | 2 +- .../docs/_examples/displaying-data/dart/pubspec.yaml | 2 +- public/docs/_examples/forms/dart/pubspec.yaml | 2 +- .../dart/pubspec.yaml | 2 +- .../docs/_examples/lifecycle-hooks/dart/pubspec.yaml | 2 +- .../pipes/dart/lib/exponential_strength_pipe.dart | 10 +--------- .../docs/_examples/pipes/dart/lib/fetch_json_pipe.dart | 2 +- .../pipes/dart/lib/flying_heroes_component.html | 4 ++-- .../_examples/pipes/dart/lib/flying_heroes_pipe.dart | 2 +- .../_examples/pipes/dart/lib/hero_list_component.dart | 2 +- public/docs/_examples/pipes/dart/pubspec.yaml | 2 +- public/docs/_examples/quickstart/dart/pubspec.yaml | 2 +- .../_examples/server-communication/dart/pubspec.yaml | 2 +- .../_examples/structural-directives/dart/pubspec.yaml | 2 +- .../docs/_examples/template-syntax/dart/pubspec.yaml | 2 +- public/docs/_examples/toh-1/dart/pubspec.yaml | 2 +- .../dart-snippets/app_component_snippets_pt2.dart | 10 +++++----- public/docs/_examples/toh-2/dart/pubspec.yaml | 2 +- public/docs/_examples/toh-3/dart/pubspec.yaml | 2 +- public/docs/_examples/toh-4/dart/pubspec.yaml | 2 +- public/docs/_examples/toh-5/dart/pubspec.yaml | 2 +- public/docs/_examples/toh-6/dart/pubspec.yaml | 2 +- public/docs/_examples/user-input/dart/pubspec.yaml | 2 +- public/docs/dart/latest/_data.json | 2 +- public/docs/dart/latest/quickstart.jade | 2 +- pubspec.yaml | 2 +- 29 files changed, 34 insertions(+), 42 deletions(-) diff --git a/public/docs/_examples/architecture/dart/pubspec.yaml b/public/docs/_examples/architecture/dart/pubspec.yaml index e57bde6ce6..4da6837c0b 100644 --- a/public/docs/_examples/architecture/dart/pubspec.yaml +++ b/public/docs/_examples/architecture/dart/pubspec.yaml @@ -5,7 +5,7 @@ version: 0.0.1 environment: sdk: '>=1.13.0 <2.0.0' dependencies: - angular2: 2.0.0-beta.17 + angular2: 2.0.0-beta.18 browser: ^0.10.0 dart_to_js_script_rewriter: ^1.0.1 transformers: diff --git a/public/docs/_examples/attribute-directives/dart/pubspec.yaml b/public/docs/_examples/attribute-directives/dart/pubspec.yaml index b6fc8fb99f..2afe4114d8 100644 --- a/public/docs/_examples/attribute-directives/dart/pubspec.yaml +++ b/public/docs/_examples/attribute-directives/dart/pubspec.yaml @@ -5,7 +5,7 @@ version: 0.0.1 environment: sdk: '>=1.13.0 <2.0.0' dependencies: - angular2: 2.0.0-beta.17 + angular2: 2.0.0-beta.18 browser: ^0.10.0 dart_to_js_script_rewriter: ^1.0.1 transformers: diff --git a/public/docs/_examples/component-styles/dart/pubspec.yaml b/public/docs/_examples/component-styles/dart/pubspec.yaml index 416256ef16..731e9e5d8e 100755 --- a/public/docs/_examples/component-styles/dart/pubspec.yaml +++ b/public/docs/_examples/component-styles/dart/pubspec.yaml @@ -5,7 +5,7 @@ version: 0.0.1 environment: sdk: '>=1.13.0 <2.0.0' dependencies: - angular2: 2.0.0-beta.17 + angular2: 2.0.0-beta.18 browser: ^0.10.0 dart_to_js_script_rewriter: ^1.0.1 transformers: diff --git a/public/docs/_examples/dependency-injection/dart/pubspec.yaml b/public/docs/_examples/dependency-injection/dart/pubspec.yaml index 749f4d97ea..b3b5a1cb42 100644 --- a/public/docs/_examples/dependency-injection/dart/pubspec.yaml +++ b/public/docs/_examples/dependency-injection/dart/pubspec.yaml @@ -5,7 +5,7 @@ version: 0.0.1 environment: sdk: '>=1.13.0 <2.0.0' dependencies: - angular2: 2.0.0-beta.17 + angular2: 2.0.0-beta.18 browser: ^0.10.0 dart_to_js_script_rewriter: ^1.0.1 transformers: diff --git a/public/docs/_examples/displaying-data/dart/pubspec.yaml b/public/docs/_examples/displaying-data/dart/pubspec.yaml index 2ca27306c6..8c57ff7300 100644 --- a/public/docs/_examples/displaying-data/dart/pubspec.yaml +++ b/public/docs/_examples/displaying-data/dart/pubspec.yaml @@ -5,7 +5,7 @@ version: 0.0.1 environment: sdk: '>=1.13.0 <2.0.0' dependencies: - angular2: 2.0.0-beta.17 + angular2: 2.0.0-beta.18 browser: ^0.10.0 dart_to_js_script_rewriter: ^1.0.1 transformers: diff --git a/public/docs/_examples/forms/dart/pubspec.yaml b/public/docs/_examples/forms/dart/pubspec.yaml index 78e526201f..89b203abf0 100644 --- a/public/docs/_examples/forms/dart/pubspec.yaml +++ b/public/docs/_examples/forms/dart/pubspec.yaml @@ -5,7 +5,7 @@ version: 0.0.1 environment: sdk: '>=1.13.0 <2.0.0' dependencies: - angular2: 2.0.0-beta.17 + angular2: 2.0.0-beta.18 browser: ^0.10.0 dart_to_js_script_rewriter: ^1.0.1 transformers: diff --git a/public/docs/_examples/hierarchical-dependency-injection/dart/pubspec.yaml b/public/docs/_examples/hierarchical-dependency-injection/dart/pubspec.yaml index f03e95c696..d81a211702 100644 --- a/public/docs/_examples/hierarchical-dependency-injection/dart/pubspec.yaml +++ b/public/docs/_examples/hierarchical-dependency-injection/dart/pubspec.yaml @@ -5,7 +5,7 @@ version: 0.0.1 environment: sdk: '>=1.13.0 <2.0.0' dependencies: - angular2: 2.0.0-beta.17 + angular2: 2.0.0-beta.18 browser: ^0.10.0 dart_to_js_script_rewriter: ^1.0.1 transformers: diff --git a/public/docs/_examples/lifecycle-hooks/dart/pubspec.yaml b/public/docs/_examples/lifecycle-hooks/dart/pubspec.yaml index e80ef83c72..0710ddbb86 100644 --- a/public/docs/_examples/lifecycle-hooks/dart/pubspec.yaml +++ b/public/docs/_examples/lifecycle-hooks/dart/pubspec.yaml @@ -5,7 +5,7 @@ version: 0.0.1 environment: sdk: '>=1.13.0 <2.0.0' dependencies: - angular2: 2.0.0-beta.17 + angular2: 2.0.0-beta.18 browser: ^0.10.0 dart_to_js_script_rewriter: ^1.0.1 transformers: diff --git a/public/docs/_examples/pipes/dart/lib/exponential_strength_pipe.dart b/public/docs/_examples/pipes/dart/lib/exponential_strength_pipe.dart index 1e66b9c791..73bce794f7 100644 --- a/public/docs/_examples/pipes/dart/lib/exponential_strength_pipe.dart +++ b/public/docs/_examples/pipes/dart/lib/exponential_strength_pipe.dart @@ -13,13 +13,5 @@ import 'package:angular2/angular2.dart'; */ @Pipe(name: 'exponentialStrength') class ExponentialStrengthPipe extends PipeTransform { - num transform(dynamic _value, [List args]) { - var exponent = args.isEmpty - ? 1 - : args.first is num - ? args.first - : num.parse(args.first.toString(), (_) => 1); - var value = _value is num ? _value : num.parse(_value.toString(), (_) => 0); - return math.pow(value, exponent); - } + num transform(num value, num exponent) => math.pow(value, exponent); } diff --git a/public/docs/_examples/pipes/dart/lib/fetch_json_pipe.dart b/public/docs/_examples/pipes/dart/lib/fetch_json_pipe.dart index 4ff5eab8d9..e5ff8d34d6 100644 --- a/public/docs/_examples/pipes/dart/lib/fetch_json_pipe.dart +++ b/public/docs/_examples/pipes/dart/lib/fetch_json_pipe.dart @@ -11,7 +11,7 @@ class FetchJsonPipe extends PipeTransform { dynamic _fetchedJson; String _prevUrl; - dynamic transform(dynamic url, [List args]) { + dynamic transform(String url) { if (url != _prevUrl) { _prevUrl = url; _fetchedJson = null; diff --git a/public/docs/_examples/pipes/dart/lib/flying_heroes_component.html b/public/docs/_examples/pipes/dart/lib/flying_heroes_component.html index 5d2a5d8a40..93e635b662 100644 --- a/public/docs/_examples/pipes/dart/lib/flying_heroes_component.html +++ b/public/docs/_examples/pipes/dart/lib/flying_heroes_component.html @@ -20,7 +20,7 @@ New hero:

Heroes who fly (piped)

-
+
{{hero.name}}
@@ -30,7 +30,7 @@ New hero:
-
+
{{hero.name}}
diff --git a/public/docs/_examples/pipes/dart/lib/flying_heroes_pipe.dart b/public/docs/_examples/pipes/dart/lib/flying_heroes_pipe.dart index fe20fe1ea3..0ece480d12 100644 --- a/public/docs/_examples/pipes/dart/lib/flying_heroes_pipe.dart +++ b/public/docs/_examples/pipes/dart/lib/flying_heroes_pipe.dart @@ -6,7 +6,7 @@ import 'heroes.dart'; @Pipe(name: 'flyingHeroes') class FlyingHeroesPipe extends PipeTransform { // #docregion filter - List transform(dynamic value, [List args]) => + List transform(List value) => value.where((hero) => hero.canFly).toList(); // #enddocregion filter } diff --git a/public/docs/_examples/pipes/dart/lib/hero_list_component.dart b/public/docs/_examples/pipes/dart/lib/hero_list_component.dart index 6088fa547f..fcbe8c6d1e 100644 --- a/public/docs/_examples/pipes/dart/lib/hero_list_component.dart +++ b/public/docs/_examples/pipes/dart/lib/hero_list_component.dart @@ -9,7 +9,7 @@ import 'fetch_json_pipe.dart'; template: '''

Heroes from JSON File

-
+
{{hero['name']}}
diff --git a/public/docs/_examples/pipes/dart/pubspec.yaml b/public/docs/_examples/pipes/dart/pubspec.yaml index e8f32d1fae..4afa2870c0 100644 --- a/public/docs/_examples/pipes/dart/pubspec.yaml +++ b/public/docs/_examples/pipes/dart/pubspec.yaml @@ -5,7 +5,7 @@ version: 0.0.1 environment: sdk: '>=1.13.0 <2.0.0' dependencies: - angular2: 2.0.0-beta.15 + angular2: 2.0.0-beta.18 browser: ^0.10.0 dart_to_js_script_rewriter: ^1.0.1 transformers: diff --git a/public/docs/_examples/quickstart/dart/pubspec.yaml b/public/docs/_examples/quickstart/dart/pubspec.yaml index 780bd7b93c..0c08200992 100644 --- a/public/docs/_examples/quickstart/dart/pubspec.yaml +++ b/public/docs/_examples/quickstart/dart/pubspec.yaml @@ -5,7 +5,7 @@ version: 0.0.1 environment: sdk: '>=1.13.0 <2.0.0' dependencies: - angular2: 2.0.0-beta.17 + angular2: 2.0.0-beta.18 browser: ^0.10.0 dart_to_js_script_rewriter: ^1.0.1 transformers: diff --git a/public/docs/_examples/server-communication/dart/pubspec.yaml b/public/docs/_examples/server-communication/dart/pubspec.yaml index 12b1164c46..217cb4edcc 100644 --- a/public/docs/_examples/server-communication/dart/pubspec.yaml +++ b/public/docs/_examples/server-communication/dart/pubspec.yaml @@ -5,7 +5,7 @@ version: 0.0.1 environment: sdk: '>=1.13.0 <2.0.0' dependencies: - angular2: 2.0.0-beta.17 + angular2: 2.0.0-beta.18 browser: ^0.10.0 dart_to_js_script_rewriter: ^1.0.1 http: ^0.11.3+3 diff --git a/public/docs/_examples/structural-directives/dart/pubspec.yaml b/public/docs/_examples/structural-directives/dart/pubspec.yaml index ef3a8caa2c..daba4aa174 100644 --- a/public/docs/_examples/structural-directives/dart/pubspec.yaml +++ b/public/docs/_examples/structural-directives/dart/pubspec.yaml @@ -5,7 +5,7 @@ version: 0.0.1 environment: sdk: '>=1.13.0 <2.0.0' dependencies: - angular2: 2.0.0-beta.17 + angular2: 2.0.0-beta.18 browser: ^0.10.0 dart_to_js_script_rewriter: ^1.0.1 transformers: diff --git a/public/docs/_examples/template-syntax/dart/pubspec.yaml b/public/docs/_examples/template-syntax/dart/pubspec.yaml index b3ca2e0c56..92574e0a45 100644 --- a/public/docs/_examples/template-syntax/dart/pubspec.yaml +++ b/public/docs/_examples/template-syntax/dart/pubspec.yaml @@ -5,7 +5,7 @@ version: 0.0.1 environment: sdk: '>=1.13.0 <2.0.0' dependencies: - angular2: 2.0.0-beta.17 + angular2: 2.0.0-beta.18 browser: ^0.10.0 dart_to_js_script_rewriter: ^1.0.1 transformers: diff --git a/public/docs/_examples/toh-1/dart/pubspec.yaml b/public/docs/_examples/toh-1/dart/pubspec.yaml index cb7ef1566c..9657ed659d 100644 --- a/public/docs/_examples/toh-1/dart/pubspec.yaml +++ b/public/docs/_examples/toh-1/dart/pubspec.yaml @@ -5,7 +5,7 @@ version: 0.0.1 environment: sdk: '>=1.13.0 <2.0.0' dependencies: - angular2: 2.0.0-beta.17 + angular2: 2.0.0-beta.18 browser: ^0.10.0 dart_to_js_script_rewriter: ^1.0.1 transformers: diff --git a/public/docs/_examples/toh-2/dart-snippets/app_component_snippets_pt2.dart b/public/docs/_examples/toh-2/dart-snippets/app_component_snippets_pt2.dart index 2e3e2438fd..9f805c5bc5 100644 --- a/public/docs/_examples/toh-2/dart-snippets/app_component_snippets_pt2.dart +++ b/public/docs/_examples/toh-2/dart-snippets/app_component_snippets_pt2.dart @@ -1,5 +1,5 @@ // #docregion ng-for -
  • +
  • {{hero.id}} {{hero.name}}
  • // #enddocregion ng-for @@ -7,14 +7,14 @@ // #docregion heroes-styled

    My Heroes

      -
    • +
    • {{hero.id}} {{hero.name}}
    // #enddocregion heroes-styled // #docregion selectedHero-click -
  • +
  • {{hero.id}} {{hero.name}}
  • // #enddocregion selectedHero-click @@ -53,7 +53,7 @@ final List heroes = mockHeroes; // #enddocregion heroes-template-1 // #docregion heroes-ngfor-1 -
  • +
  • // #enddocregion heroes-ngfor-1 // #docregion class-selected-1 @@ -61,7 +61,7 @@ final List heroes = mockHeroes; // #enddocregion class-selected-1 // #docregion class-selected-2 -
  • {{hero.id}} {{hero.name}} diff --git a/public/docs/_examples/toh-2/dart/pubspec.yaml b/public/docs/_examples/toh-2/dart/pubspec.yaml index cb7ef1566c..9657ed659d 100644 --- a/public/docs/_examples/toh-2/dart/pubspec.yaml +++ b/public/docs/_examples/toh-2/dart/pubspec.yaml @@ -5,7 +5,7 @@ version: 0.0.1 environment: sdk: '>=1.13.0 <2.0.0' dependencies: - angular2: 2.0.0-beta.17 + angular2: 2.0.0-beta.18 browser: ^0.10.0 dart_to_js_script_rewriter: ^1.0.1 transformers: diff --git a/public/docs/_examples/toh-3/dart/pubspec.yaml b/public/docs/_examples/toh-3/dart/pubspec.yaml index cb7ef1566c..9657ed659d 100644 --- a/public/docs/_examples/toh-3/dart/pubspec.yaml +++ b/public/docs/_examples/toh-3/dart/pubspec.yaml @@ -5,7 +5,7 @@ version: 0.0.1 environment: sdk: '>=1.13.0 <2.0.0' dependencies: - angular2: 2.0.0-beta.17 + angular2: 2.0.0-beta.18 browser: ^0.10.0 dart_to_js_script_rewriter: ^1.0.1 transformers: diff --git a/public/docs/_examples/toh-4/dart/pubspec.yaml b/public/docs/_examples/toh-4/dart/pubspec.yaml index cb7ef1566c..9657ed659d 100644 --- a/public/docs/_examples/toh-4/dart/pubspec.yaml +++ b/public/docs/_examples/toh-4/dart/pubspec.yaml @@ -5,7 +5,7 @@ version: 0.0.1 environment: sdk: '>=1.13.0 <2.0.0' dependencies: - angular2: 2.0.0-beta.17 + angular2: 2.0.0-beta.18 browser: ^0.10.0 dart_to_js_script_rewriter: ^1.0.1 transformers: diff --git a/public/docs/_examples/toh-5/dart/pubspec.yaml b/public/docs/_examples/toh-5/dart/pubspec.yaml index cb7ef1566c..9657ed659d 100644 --- a/public/docs/_examples/toh-5/dart/pubspec.yaml +++ b/public/docs/_examples/toh-5/dart/pubspec.yaml @@ -5,7 +5,7 @@ version: 0.0.1 environment: sdk: '>=1.13.0 <2.0.0' dependencies: - angular2: 2.0.0-beta.17 + angular2: 2.0.0-beta.18 browser: ^0.10.0 dart_to_js_script_rewriter: ^1.0.1 transformers: diff --git a/public/docs/_examples/toh-6/dart/pubspec.yaml b/public/docs/_examples/toh-6/dart/pubspec.yaml index 574758d902..b59118580c 100644 --- a/public/docs/_examples/toh-6/dart/pubspec.yaml +++ b/public/docs/_examples/toh-6/dart/pubspec.yaml @@ -7,7 +7,7 @@ environment: sdk: '>=1.13.0 <2.0.0' # #docregion additions dependencies: - angular2: 2.0.0-beta.17 + angular2: 2.0.0-beta.18 # #enddocregion additions browser: ^0.10.0 dart_to_js_script_rewriter: ^1.0.1 diff --git a/public/docs/_examples/user-input/dart/pubspec.yaml b/public/docs/_examples/user-input/dart/pubspec.yaml index ea7da2d84f..fa28056488 100644 --- a/public/docs/_examples/user-input/dart/pubspec.yaml +++ b/public/docs/_examples/user-input/dart/pubspec.yaml @@ -5,7 +5,7 @@ version: 0.0.1 environment: sdk: '>=1.13.0 <2.0.0' dependencies: - angular2: 2.0.0-beta.17 + angular2: 2.0.0-beta.18 browser: ^0.10.0 dart_to_js_script_rewriter: ^1.0.1 transformers: diff --git a/public/docs/dart/latest/_data.json b/public/docs/dart/latest/_data.json index fe6a0eb5ed..ab9169d800 100644 --- a/public/docs/dart/latest/_data.json +++ b/public/docs/dart/latest/_data.json @@ -3,7 +3,7 @@ "icon": "home", "title": "Angular Docs", "menuTitle": "Docs Home", - "banner": "Welcome to angular.io/dart! The current Angular 2 Dart release is beta.17. Consult the Change Log about recent enhancements, fixes, and breaking changes." + "banner": "Welcome to angular.io/dart! The current Angular 2 Dart release is beta.18. Consult the Change Log about recent enhancements, fixes, and breaking changes." }, "quickstart": { diff --git a/public/docs/dart/latest/quickstart.jade b/public/docs/dart/latest/quickstart.jade index e2a026d4f7..f3d81db102 100644 --- a/public/docs/dart/latest/quickstart.jade +++ b/public/docs/dart/latest/quickstart.jade @@ -31,7 +31,7 @@ block package-and-config-files packages as dependencies, as well as the `angular2` transformer. It can also specify other packages and transformers for the app to use, such as [dart_to_js_script_rewriter](https://pub.dartlang.org/packages/dart_to_js_script_rewriter). - Angular 2 is still changing, so provide an exact version: **2.0.0-beta.17**. + Angular 2 is still changing, so provide an exact version: **2.0.0-beta.18**. [pubspec]: https://www.dartlang.org/tools/pub/pubspec.html diff --git a/pubspec.yaml b/pubspec.yaml index 8f82826558..ce4dd88f48 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -4,7 +4,7 @@ version: 0.0.1 environment: sdk: '>=1.13.0 <2.0.0' dependencies: - angular2: 2.0.0-beta.17 + angular2: 2.0.0-beta.18 browser: ^0.10.0 dart_to_js_script_rewriter: ^1.0.1 transformers: