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

26th
Nov 2015
Zarko Susnjar
@zarkosusnjar
Nov 26 2015 22:24

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

http://plnkr.co/edit/qktNCz8Aup6TizN00vnp?p=preview

  <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.