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
This commit is contained in:
parent
bacc4bcbac
commit
3510f96620
|
@ -16,11 +16,11 @@ import 'power_booster_component.dart';
|
||||||
FlyingHeroesComponent,
|
FlyingHeroesComponent,
|
||||||
FlyingHeroesImpureComponent,
|
FlyingHeroesImpureComponent,
|
||||||
HeroAsyncMessageComponent,
|
HeroAsyncMessageComponent,
|
||||||
HeroBirthday,
|
HeroBirthdayComponent,
|
||||||
HeroBirthday2,
|
HeroBirthday2Component,
|
||||||
HeroListComponent,
|
HeroListComponent,
|
||||||
PowerBoostCalculator,
|
PowerBoostCalculatorComponent,
|
||||||
PowerBooster,
|
PowerBoosterComponent,
|
||||||
])
|
])
|
||||||
class AppComponent {
|
class AppComponent {
|
||||||
DateTime birthday = new DateTime(1988, 4, 15); // April 15, 1988
|
DateTime birthday = new DateTime(1988, 4, 15); // April 15, 1988
|
||||||
|
|
|
@ -7,6 +7,6 @@ import 'package:angular2/angular2.dart';
|
||||||
template: "<p>The hero's birthday is {{ birthday | date }}</p>"
|
template: "<p>The hero's birthday is {{ birthday | date }}</p>"
|
||||||
// #enddocregion hero-birthday-template
|
// #enddocregion hero-birthday-template
|
||||||
)
|
)
|
||||||
class HeroBirthday {
|
class HeroBirthdayComponent {
|
||||||
DateTime birthday = new DateTime(1988, 4, 15); // April 15, 1988
|
DateTime birthday = new DateTime(1988, 4, 15); // April 15, 1988
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@ import 'package:angular2/angular2.dart';
|
||||||
// #enddocregion template
|
// #enddocregion template
|
||||||
)
|
)
|
||||||
// #docregion class
|
// #docregion class
|
||||||
class HeroBirthday2 {
|
class HeroBirthday2Component {
|
||||||
DateTime birthday = new DateTime(1988, 4, 15); // April 15, 1988
|
DateTime birthday = new DateTime(1988, 4, 15); // April 15, 1988
|
||||||
|
|
||||||
bool toggle = true;
|
bool toggle = true;
|
||||||
|
|
|
@ -13,7 +13,7 @@ import 'exponential_strength_pipe.dart';
|
||||||
</p>
|
</p>
|
||||||
''',
|
''',
|
||||||
pipes: const [ExponentialStrengthPipe])
|
pipes: const [ExponentialStrengthPipe])
|
||||||
class PowerBoostCalculator {
|
class PowerBoostCalculatorComponent {
|
||||||
num power = 5;
|
num power = 5;
|
||||||
num factor = 1;
|
num factor = 1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,4 +9,4 @@ import 'exponential_strength_pipe.dart';
|
||||||
<p>Super power boost: {{2 | exponentialStrength: 10}}</p>
|
<p>Super power boost: {{2 | exponentialStrength: 10}}</p>
|
||||||
''',
|
''',
|
||||||
pipes: const [ExponentialStrengthPipe])
|
pipes: const [ExponentialStrengthPipe])
|
||||||
class PowerBooster {}
|
class PowerBoosterComponent {}
|
||||||
|
|
|
@ -5,5 +5,5 @@ import 'package:pipe_examples/hero_birthday1_component.dart';
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
bootstrap(AppComponent);
|
bootstrap(AppComponent);
|
||||||
bootstrap(HeroBirthday);
|
bootstrap(HeroBirthdayComponent);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue