https://github.com/angular/angular
Raw File
Tip revision: 0a2191f8e7e232087aab0a7a9eb9ee6871580267 authored by Alex Rickabaugh on 12 May 2021, 18:13:50 UTC
Revert "refactor(core): optimize calls to `split` and `slice` while computing version parts (#41208)"
Tip revision: 0a2191f
app.component.ts
import { Component } from '@angular/core';

import { Hero, heroes } from './hero';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: [ './app.component.css' ]
})
export class AppComponent {
  heroes = heroes;
  hero = this.heroes[0];
  // #docregion condition
  condition = false;
  // #enddocregion condition
  logs: string[] = [];
  showSad = true;
  status = 'ready';

  trackById(index: number, hero: Hero): number { return hero.id; }
}
back to top