Here is my @Injecatable() / provider
setdata(data) {
> setTimeout( this.data=data);
> console.log("insidee single:", this.data);
> }
> log(){
> console.log("insideeLog single:", this.data);
> this.welcomeData = this.data;
> console.log("welcome single:", this.welcomeData);
> }
File 1 fixing data to the provider
this.http.get(this.provider.phpURI + "welcome.php").map(res => res.json()).subscribe(data => {
> this.single.setdata(data);
> this.single.log();
File 2 HOw to access updated data in second file, am trying like this below
this.single.log();
its not working for 2nd file, Thanks…