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(...)...
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...
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'm trying to verify that the response email field matches the email to the user which is logged-in. When I navigate to an URL (detail/:id) which was set up by another user and doesn't belong to the currently logged-in user, Angular should di...
Using Knockout & Typescript. How can I change the value of an Observable from its subscription?  I'm refactoring a KO old code using Typescript, and I found this piece of code that subscribes to an observable and is updating it using "thi...
I have a select input created with a value of an observable.  I subscribe to the observable, but can't seem to get the ID of the select input.  <select data-bind="options: firstName, optionsText: 'name', value: $parents[0].selectCa...
I used that "counts-by-room" example from Meteor's docs to count the number of "reviews" for an "entry" on my project. Now, when I click through to an entry, the template isn't loading. It requires a refresh. Did I mes...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.