coin-ticker | A configurable cryptocurrency ticker - Safari extension | Browser Plugin library
kandi X-RAY | coin-ticker Summary
kandi X-RAY | coin-ticker Summary
A Safari, Chrome & Firefox extension that puts a configurable cryptocurrency ticker right in your browser.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of coin-ticker
coin-ticker Key Features
coin-ticker Examples and Code Snippets
Community Discussions
Trending Discussions on coin-ticker
QUESTION
I'm new at Angular and Nodejs and Im trying to build a mean stack cryptocurrency exchange app. I created a nodejs backend to get the current exchange rate from an API and display it in the html. Also I created the currency exchange component and its working fine. What I need to update the html and the currency exchange component every 5 or 10 seconds.
My first question is if its better to do it in the backend or the frontend, and the second is how I do it.
Here is my code:
api.js
...ANSWER
Answered 2017-Jul-18 at 05:24If you want poll regularly every 5 or 10 second there is no advantage using web workers. Generally web workers will be useful for two way communications like chat application.
I think in your case you can use client side normal polling. It's very easy to implement client side polling using rxjs.
QUESTION
Im learning nodejs and I'm creating a server to get the price of cryptocurrencies using a npm called Coin-Ticker. I want to use the data I'm getting in an Angular app but it's not displaying the data in the html. This is my code:
server.js
...ANSWER
Answered 2017-Jul-15 at 01:44It is because coin ticker returns the json in the then so when you are doing res.status(200).json(posts.data);
it is returning undefined. just replace that with res.status(200).json(posts)
and it should work
Also you can not do router.get((req, res) => {
you need a path before this. I tried this code with
router.get('/convert', (req, res) => {
and with the changes above it worked
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install coin-ticker
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page