These are chat archives for angular/material

Nov 2016
Mamadou Toure
Nov 26 2016 00:22
Hi Folks,
I'm driving crazy with observable. I'm calling a service in my app.component in the OnIt which returns me an array of records (let's say : data), then I send this array to my child component child.component by using the binding so, in my child class I have somewhere an @Input() data. What I found weird is that the service is first called in my child when I try use the data variable. I put the breakpoint but I noticed the OnInit of my app.component is called after my child component tries to use the data varriable which lead to an error say that the data variable is unknown. Help please