import { Component } from '@angular/core';
import { Athlete } from './athlete';

@Component({
    selector: 'athletes-app',
    templateUrl: 'athletes-app.component.html'
})
export class AthletesAppComponent {
    selectedAthlete: string;

    constructor() {
        this.selectedAthlete = "none";
    }

    showDetails(selectedAthlete: Athlete) {
        this.selectedAthlete = selectedAthlete.name;
    }
}
