Questions tagged [subscribe]

994 questions
-1
votes
1 answer

Ionic - Call 2 subscribe functions and wait until they finish

I'm using Ionic to build a mobile app. In it I have 2 API calls, that can run at the same time, after they both finished, I need to change the data in the second response according to data from the first response. So I need to make sure that when I…
shlomiLan
  • 659
  • 1
  • 9
  • 33
-1
votes
1 answer

Knockout.js subscribe to observable element inside observable array

js My Course do not subscribe to observable array when change. Console logs do not shows. I don't know how to fix it. Any idea? class Course { constructor(data) { this.id = ko.observable(data.id); this.name = ko.observable(data.name); …
Szalbik
  • 133
  • 2
  • 10
-1
votes
1 answer

Knockout subscribe callback not fired

I am using the Knockout subscribe function. I have 3 combo boxes. Every combo has no data until I select a record from the previous combo (except for the first combo box). When I select it works well. In the subscribe callback, it correctly gives me…
Tamer
  • 19
  • 6
-1
votes
1 answer

How to display a modal window, when validation is complete?

I made a form for newsletter subscription in my footer website. The code for this is:

Newsletter Subscribe:

">
Cipryst
  • 223
  • 1
  • 13
-1
votes
4 answers

how to return the data after getting response in http api call in angular 4?

This is my function which i define in my service and i am calling this service method in my component but it return before the response has come from http api call, so i get undefined return data. home(){ this._http …
Shubham Kumar
  • 2,171
  • 1
  • 13
  • 22
-1
votes
1 answer

PayPal Subscribe button

I see that PayPal has removed the recurring donation option that was previously available when people clicked on the donate button on my Wordpress.com website. This is problematic for me so I have tried to embed a Subscribe button, but it is not…
-1
votes
2 answers

Angular 4 using subscribe to bind data from a promise with an observable not working

Hello I have a PouchDB service that retrieves some data and return a promise with it. I want to convert that promise to an observable and then subscribe in ngOnInit so the model gets updated. I made an implementation of a service with a method that…
CoF
  • 1
  • 3
-1
votes
1 answer

Angular2 can you subscribe for more than one parameter from same json?

So is it possible to subscribe to more than one json variables? this.http.get(this.api_url + "preference") .map(response => response.json()) .subscribe(res => this.limit = res.limit, res => this.sources = res.sources); In this example, the…
-1
votes
1 answer

Observables and subscribing angular 2

I know there are other posts on it but those answers just aren't clicking for me and the docs aren't either sadly. I am really struggling to use observables and subscribe to them. What I am trying to to is update and array in one component and…
Peter Horton
  • 148
  • 9
-1
votes
1 answer

how can i send web/desktop notification for others?

i want to send desktop notification for my website visitor after the close my website how can i make them subscribe ? and how to send the notification for them all this website make the same jeapie.com, but i want to make my own i have seen some…
fares r
  • 1
  • 1
-1
votes
2 answers

Remove Copyrighted Footer From IONCube Encrypted PHP

I Have A Code Which Has been encrypted by IONcube and i really couldnt decode it to see the regular codes i just wanted to remove the footer which contained software copyrighted . i just paid for the script but i didnt wanted the copyrighted so…
-2
votes
3 answers

how to use object in pipe async and in component?

I need to use the reference of observable twice. in html:
and in template: this.subject = subject
-2
votes
1 answer

Property 'subscribe' does not exist on type '"void"

Hi I am working on a angular web api project and I am getting this error on subscribe keyword, also imported observable but error is same. So if anyone has encounter this before kindly help. employee.component.ts import { Component, OnInit } from…
Joy Josh
  • 1
  • 2
  • 2
-2
votes
1 answer

Wait for subscription in the same function

I would like to know how I can wait in an If-Else-branch for all REST-calls to finish, even though the Else-side has no REST calls. Here's an example: createNewList(oldList: any[]) { const newList = []; oldList.forEach(element => { if…
Masel
  • 19
  • 4
-2
votes
1 answer

Property 'subscribe' does not exist on type 'Promise>' angular service call

trying to make a service call in Angular on init for a component, the server I'm fetching data from takes a bit to respond and as such I am trying to use promises to assign the data returned to this.stats in my component when trying to write the…
luther wardle
  • 439
  • 5
  • 17