Now I'm studying Angular 5, in the project I use restangular. my current task is to get the server response before starting the page. Can anyone help me? thanks in advance (I have responce and I can read data in compnent, but I need wait respnce in resolver)
> service
getRequest(){
...
return this.restangular.one(url).get()
}
> resolver
readRequest(){
...
this.service.getRequest().subscribe(data => {
return data;
})
}