Http request made multiple times in Angular2 service

后端 未结 4 681
-上瘾入骨i
-上瘾入骨i 2021-01-01 21:39

I have created a service that makes a simple GET request:

private accountObservable = null;

constructor(private _http: Http) {
}

getAccount () {
    // If          


        
4条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-01 22:33

    In my case it was because of form post and button clik was set to same listener

提交回复
热议问题