How i can update my API (get) with this function setInterval()
I have this this get func.:
getServices(){
return this._http.get(this._url)
.map(res => res.json());
}
And i would to refresh my data (get json data) every 1 second
I found this example, but this function only show logs every one second, and how update my API with get?
setInterval(function (getServices) {
console.log("Test")
}, 1000)