These are chat archives for AngularClass/angular2-webpack-starter

Nov 2015
Zarko Susnjar
Nov 26 2015 22:24

Hi guys, I'm wondering is this the right way of sharing data retrieved from HTTP between components

  <personeditorA [person]="person" > </personeditorA>

      <personeditorB [person]="person" > </personeditorB>

      <personeditorC [person]="person" > </personeditorC>

      <personeditorD [person]="person" > </personeditorD>

Basically, making one empty object, and fill it with data in parent component after data arrives, bind this variable to child components.