import { Component , Input } from '@angular/core' ; import { Experiment } from '../../common/experiment.model' ; @ Component ( { selector : 'experiment' , template : require ( './experiment.detail.component.html' ) , styles : [ `
    .experiment {
      cursor: pointer;
      outline: 1px lightgray solid;
      padding: 5px;
      margin: 5px;
    }
  ` ] } ) export class ExperimentDetailComponent { @ Input ( ) experiment : Experiment ; doExperiment ( ) { this . experiment . completed += 1 ; } ; }