Just want to understand why my pubnub javascript code does not receive a message from a channel. I can subscribe and publish, but if another browser sends a new publish message, the other browser can not receive the message. heres my code:  $(documen...
I'm using Karma with PhantomJS to run tests on components that are using RxJS.  The tests themselves seem to be doing fine but I keep getting this error at seemingly random times:  PhantomJS 2.1.1 (Mac OS X 0.0.0) ERROR  at webpack:///~/rxjs/Subs...
Whats the way to simplify something like the following code example? I can't find the right operator.. could anyone give a short example?  this.returnsObservable1(...)   .subscribe(      success => {        this.returnsObservable2(...)...
Hi In my Angular Component, i have this code in one of my methods  this.http.get("http://localhost:8080/poeples") .map(     resp => { resp = resp.json(); } ).subscribe(     (data) => { this.poeples = data; },     err =>  console.log(...
I've been returning requests from my functions like this:  makeConnection(data: any) {     console.log('makeConnection');     return this.api.get(data.url, data.dataToSend);   }   So I can subscribe like this: makeConnection.subscribe();...
Angular front-end calls a service that must return observable. I need to set the calling component's variable to a value from the service's observable, but I can't find a way to access the component variable.  Hoping I'm not missing s...
I have a collection in Mongo containing 2 items, I see them when autopublish is enabled. But when I disable autopublish, and when I add publish and subscribe code, it doesnt work anymore.  This is the first time i'm using Meteor version 1.7.0.5,...
So in general, the shopping cart details are stored in local storage, being parsed back and assinged to an array, and then should be subscribed and posted to MongoDB, but returns "undefined":  checkout.ts    confirmOrder(){     let orderDetai...
I have a simple subscribe method in which I assign the response to messageIds  messageIds;  this.messageService.subjectPassMessageId.subscribe(data => {     this.messageIds = data      console.log(this.messageIds)         // ['3', '4&#...
I have a strange error in angular2. while the following code works fine  loginResult.subscribe(       (data) =>         this.response = data,       (err) =>          this._ajaxService.handleError(err, 'A string to summarize the activity'...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.