docs(guide/pipes): follow-up to #1654 (#1769)

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:
Patrice Chalin 2016-06-28 08:22:53 -07:00 committed by Kathy Walrath
parent bacc4bcbac
commit 3510f96620
6 changed files with 9 additions and 9 deletions

View File

@ -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

View File

@ -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
} }

View File

@ -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;

View File

@ -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;
} }

View File

@ -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 {}

View File

@ -5,5 +5,5 @@ import 'package:pipe_examples/hero_birthday1_component.dart';
main() { main() {
bootstrap(AppComponent); bootstrap(AppComponent);
bootstrap(HeroBirthday); bootstrap(HeroBirthdayComponent);
} }