In response, there is only one value. So how can I use that response outside of function?
Whenever I tried to use outside function it is showing in console undefined.
this.adminService.getlastfid().subscribe( response =>{
this.lastid = response ;
//console.log(data)
});
let l_id = this.lastid;
console.log(l_id);
1 post - 1 participant