Skip to content

Commit

Permalink
fixup! build(docs-infra): implement full template checking for examples
Browse files Browse the repository at this point in the history
  • Loading branch information
petebacondarwin committed Feb 25, 2021
1 parent 4e7086b commit ebe5243
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions aio/content/examples/pipes/src/app/flying-heroes.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
// #docregion pure
import { Pipe, PipeTransform } from '@angular/core';

import { Flyer } from './heroes';
import { Hero } from './heroes';

@Pipe({ name: 'flyingHeroes' })
export class FlyingHeroesPipe implements PipeTransform {
transform(allHeroes: Flyer[]) {
transform(allHeroes: Hero[]) {
// #docregion filter
return allHeroes.filter(hero => hero.canFly);
// #enddocregion filter
Expand Down
4 changes: 2 additions & 2 deletions aio/content/examples/pipes/src/app/heroes.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export interface Flyer { name: string; canFly: boolean; }
export const HEROES = [
export interface Hero { name: string; canFly: boolean; }
export const HEROES: Hero[] = [
{name: 'Windstorm', canFly: true},
{name: 'Bombasto', canFly: false},
{name: 'Magneto', canFly: false},
Expand Down

0 comments on commit ebe5243

Please sign in to comment.