[ad_1]
Brief explanation: home.ts
fetches data from a service using the below code in its OnInit()
function:
this._http.get(this._url+this.SNO+"&"+this.randomno,headers:headers)
.subscribe(data => {this.list=data.json();
Now this page has a field to add new record. What i am doing is, once user adds the record, i am basically reloading the page using below code:
this.navCtrl.setRoot(CommunicationPage
I want to refresh the data without reloading the page, How do i do this ?
Please advise.
[ad_2]
لینک منبع