i have the following code and i'm trying to console log a variable called trt i created below it: how can i get trt in console log?? thanks
this.rows = this.dataService.SetItem('added-items',());{
console.log(trt);
this.dataService.GetJson().subscribe((result)=>
{
this.rows=(JSON.parse(result['_body']));
var trt=(result['_body']);
//this.rows = this.dataService.SetItem("data",this.rows);
})
thanks!!