Mainly Dart-side review, following #1654: - Updates to follow style guide - Suites passed: public/docs/_examples/pipes/dart - Suites failed (known issue - #1761): public/docs/_examples/pipes/ts
13 lines
335 B
Dart
13 lines
335 B
Dart
// #docregion
|
|
import 'package:angular2/angular2.dart';
|
|
import 'exponential_strength_pipe.dart';
|
|
|
|
@Component(
|
|
selector: 'power-booster',
|
|
template: '''
|
|
<h2>Power Booster</h2>
|
|
<p>Super power boost: {{2 | exponentialStrength: 10}}</p>
|
|
''',
|
|
pipes: const [ExponentialStrengthPipe])
|
|
class PowerBoosterComponent {}
|