It uses Rxjs under the hood and it was easy to solve. I also switched to
beta3 version of Angular.
Zlaja
On Sunday, February 7, 2016 at 1:05:43 PM UTC+1, Zlatko Josic wrote:
>
> Hi,
>
> I want to create my observer and I don't know how to do it. I wil explain
> it on next fragment of the code:
>
> return this.next.invoke(invocation)
> .flatMap(result => {
> if (result.success) {
> console.log("interceptor invoke result true");
> //code here...
> return invocation.editViewModel.pullModel();
> } else {
> console.log("interceptor invoke result false");
> return //How to crete my observer here
> }
>
> So, if result if success I will call *invocation.editViewModel.pullModel()
> *which return observer. But, if the result is not success I would like to
> create Observer with result parameter of the flatMap method. I've tried to
> find example, but without success, only examples with http.
>
> Thaks
>
> Zlaja
>
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.