+ guide/pipes/ts: update docs and example code + guide/pipes/dart: new prose, updated example code + fix platform_directives reference; html cleanup + enable pipes e2e testing For `e2e-spec.js`: If the async test is executed too early it will fail (simply because the async message hasn’t been received yet). + follow new constants naming convention
15 lines
348 B
TypeScript
15 lines
348 B
TypeScript
// #docregion
|
|
import { Component } from '@angular/core';
|
|
|
|
import { ExponentialStrengthPipe } from './exponential-strength.pipe';
|
|
|
|
@Component({
|
|
selector: 'power-booster',
|
|
template: `
|
|
<h2>Power Booster</h2>
|
|
<p>Super power boost: {{2 | exponentialStrength: 10}}</p>
|
|
`,
|
|
pipes: [ExponentialStrengthPipe]
|
|
})
|
|
export class PowerBooster { }
|