updload(name,age,address)
{
debugger;
this.data=this.service.tryinsert(name,age,address);
this.data.subscribe(
(respose:any)=>{
console.log(respose);
}
)
}
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
I have imported the above two files but when I pass the data for name,age, address from the browser, it says
ERROR TypeError: Cannot read property 'subscribe' of undefined