Skip to content

Instantly share code, notes, and snippets.

Last active June 6, 2017 10:22
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
export class AstronautComponent extends BaseComponent {
@Input() astronaut: string;
mission = '<no mission announced>';
confirmed = false;
announced = false;
constructor(private missionService: MissionService) {
mission => {
this.mission = mission;
this.announced = true;
this.confirmed = false;
confirm() {
this.confirmed = true;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment