I'm using angular2 observable pattern to make http requests. I'm trying to conditional repeat the http get: I want to execute the http get until a condition is met:
http.get('url')
.map(res => {
// if the condition is met I should repeat the http get request
})
.subscribe()
Is there a way to conditional repeat the http get request?
Thanks, Marco