Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit eafd7db

Browse files
chalinkwalrath
authored andcommitted
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`
1 parent 738b550 commit eafd7db

File tree

29 files changed

+34
-42
lines changed

29 files changed

+34
-42
lines changed

public/docs/_examples/architecture/dart/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ version: 0.0.1
55
environment:
66
sdk: '>=1.13.0 <2.0.0'
77
dependencies:
8-
angular2: 2.0.0-beta.17
8+
angular2: 2.0.0-beta.18
99
browser: ^0.10.0
1010
dart_to_js_script_rewriter: ^1.0.1
1111
transformers:

public/docs/_examples/attribute-directives/dart/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ version: 0.0.1
55
environment:
66
sdk: '>=1.13.0 <2.0.0'
77
dependencies:
8-
angular2: 2.0.0-beta.17
8+
angular2: 2.0.0-beta.18
99
browser: ^0.10.0
1010
dart_to_js_script_rewriter: ^1.0.1
1111
transformers:

public/docs/_examples/component-styles/dart/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ version: 0.0.1
55
environment:
66
sdk: '>=1.13.0 <2.0.0'
77
dependencies:
8-
angular2: 2.0.0-beta.17
8+
angular2: 2.0.0-beta.18
99
browser: ^0.10.0
1010
dart_to_js_script_rewriter: ^1.0.1
1111
transformers:

public/docs/_examples/dependency-injection/dart/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ version: 0.0.1
55
environment:
66
sdk: '>=1.13.0 <2.0.0'
77
dependencies:
8-
angular2: 2.0.0-beta.17
8+
angular2: 2.0.0-beta.18
99
browser: ^0.10.0
1010
dart_to_js_script_rewriter: ^1.0.1
1111
transformers:

public/docs/_examples/displaying-data/dart/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ version: 0.0.1
55
environment:
66
sdk: '>=1.13.0 <2.0.0'
77
dependencies:
8-
angular2: 2.0.0-beta.17
8+
angular2: 2.0.0-beta.18
99
browser: ^0.10.0
1010
dart_to_js_script_rewriter: ^1.0.1
1111
transformers:

public/docs/_examples/forms/dart/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ version: 0.0.1
55
environment:
66
sdk: '>=1.13.0 <2.0.0'
77
dependencies:
8-
angular2: 2.0.0-beta.17
8+
angular2: 2.0.0-beta.18
99
browser: ^0.10.0
1010
dart_to_js_script_rewriter: ^1.0.1
1111
transformers:

public/docs/_examples/hierarchical-dependency-injection/dart/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ version: 0.0.1
55
environment:
66
sdk: '>=1.13.0 <2.0.0'
77
dependencies:
8-
angular2: 2.0.0-beta.17
8+
angular2: 2.0.0-beta.18
99
browser: ^0.10.0
1010
dart_to_js_script_rewriter: ^1.0.1
1111
transformers:

public/docs/_examples/lifecycle-hooks/dart/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ version: 0.0.1
55
environment:
66
sdk: '>=1.13.0 <2.0.0'
77
dependencies:
8-
angular2: 2.0.0-beta.17
8+
angular2: 2.0.0-beta.18
99
browser: ^0.10.0
1010
dart_to_js_script_rewriter: ^1.0.1
1111
transformers:

public/docs/_examples/pipes/dart/lib/exponential_strength_pipe.dart

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,5 @@ import 'package:angular2/angular2.dart';
1313
*/
1414
@Pipe(name: 'exponentialStrength')
1515
class ExponentialStrengthPipe extends PipeTransform {
16-
num transform(dynamic _value, [List<dynamic> args]) {
17-
var exponent = args.isEmpty
18-
? 1
19-
: args.first is num
20-
? args.first
21-
: num.parse(args.first.toString(), (_) => 1);
22-
var value = _value is num ? _value : num.parse(_value.toString(), (_) => 0);
23-
return math.pow(value, exponent);
24-
}
16+
num transform(num value, num exponent) => math.pow(value, exponent);
2517
}

public/docs/_examples/pipes/dart/lib/fetch_json_pipe.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class FetchJsonPipe extends PipeTransform {
1111
dynamic _fetchedJson;
1212
String _prevUrl;
1313

14-
dynamic transform(dynamic url, [List<dynamic> args]) {
14+
dynamic transform(String url) {
1515
if (url != _prevUrl) {
1616
_prevUrl = url;
1717
_fetchedJson = null;

0 commit comments

Comments
 (0)