Cannot find name 'OnDestroy'


#1

I am getting this error

import {Component, Input, OnDestroy} from 'angular2/core';

export class cardItem implements OnDestroy {
  ngOnDestroy() {
this.cardItem.removeGroup(this);
  }

}

how can i fix this?


#2

That should be '@angular/core'.