Sign Up

Sign In

Forget Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

You must login to ask question.

Discy Latest Questions

  • 0

I am trying to subscribe to an observable from a service, it builds without error but I get the error “this.service.getBanners(…).subscribe is not a function” when viewing in the browser. Service: import { Injectable } from '@angular/core'; import { Observable } from 'rxjs';@Injectable()export ...

  • 0

I have used a custom directive to detect click outside an element in angular 2 but the same is not possible in angular 4. [plunkr] https://plnkr.co/edit/aKcZVQ?p=info When I try using the same code in angular-4 I get the following errors: 1. Argument of ...

  • 0

I have used a custom directive to detect click outside an element in angular 2 but the same is not possible in angular 4. [plunkr] https://plnkr.co/edit/aKcZVQ?p=info When I try using the same code in angular-4 I get the following errors: 1. Argument of ...

  • 0

I see a lot of tutorials doing something like this: http.get("...").subscribe( success => console.log('hello success'), error => console.log('bye error') );I don’t know how this works, since there aren’t any types or anything, however I tried to do that myself and I end ...

  • 0

I am trying to take advantage of observables in angular2 and got confused on why should i use map() over subscribe(). Suppose i am getting values from a webApi, like this this.http.get('http://172.17.40.41:8089/api/Master/GetAllCountry') Now using subscribe(success, error, complete) I can get all the values on the ...

close