title: angular2 @Input EventEmitter update view
body: <p>iam trying to make a simple grid component and i have a trouble with updating view after emitting event !
  Please explain who knows, why after updating simple component, view do not re-rendered ? whats wrong with this code ?</p>
  
  <pre><code>export class GridComponent implements OnInit {
    @Input() resource: any [];
    @Output() saveModel = new EventEmitter();
    @Output() deleteModel = new EventEmitter();
    attributes: any[];
    isUpdating: boolean = false;
    updatingID: number;
  
    constructor() {}
  
    ngOnInit() {
      this.attributes = Object.keys(this.resource[0]);
    }
  
    toggleUpdate(id, flag = true) {
      this.isUpdating = !this.isUpdating;
      this.updatingID = flag ? id : undefined;
    }
  
    destroy(id) {
      this.deleteModel.emit(id);
    }
  
    save(model) {
      this.saveModel.emit(model);
      this.toggleUpdate(model.id, false);
    }
  
    cancel(id) {
      this.toggleUpdate(id, false);
    }
  
  }
  </code></pre>
  
  <p>Full example here <a href="https://plnkr.co/edit/InxsHu9GwCtMplYoocsS?p=preview" rel="nofollow">https://plnkr.co/edit/InxsHu9GwCtMplYoocsS?p=preview</a></p>