rxjsinaction / rxjs-in-action Goto Github PK
View Code? Open in Web Editor NEWCode sample repository
Code sample repository
https://github.com/RxJSInAction/rxjs-in-action/blob/master/examples/4/7/4_7.js
does not correspond to the marble diagram (p.99, Figure 4.8) of 4.3.1 Propagation. Due to the use of the of
static operator there is only a single event containing an array of five elements - not five events as depicted in the marble diagram. For that the from
static operator has to be used:
const showEmitted = x => console.log(`Emitted: ${x}`);
const showReceived = x => console.log(`Received: ${x}`);
Rx.Observable.from([1, 2, 3, 4, 5])
.do(showEmitted)
.delay(200)
.subscribe(showReceived);
// Output:
// Emitted: 1
// Emitted: 2
// Emitted: 3
// Emitted: 4
// Emitted: 5
// ... 200 milliseconds later...
// Received: 1
// Received: 2
// Received: 3
// Received: 4
// Received: 5
I am new to the angular and rxjs.
I get the following runtime error in chrome:
Rx.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
1 Refused to execute script from 'https://unpkg.com/@reactivex/[email protected]/dist/global/Rx.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.
Uncaught ReferenceError: Rx is not defined at wrapper ((index):43) at (index):73 wrapper @ (index):43 (anonymous) @ (index):73
Hi!
You need to invoke toString()
method on a newly created USDMoney
object on line 28. Because now it's printing the object and I guess you want to more valuable output.
The same case in the next listing (4_5.js).
Or is it tricky don't_copypaste_blindly game for readers?๐
rxjs-in-action/examples/6/5/6_5.js
Line 32 in 3f31165
https://9to5google.com/2018/03/30/google-url-shortener-shut-down/
This affects "6.5 & 6.6 & 6.7 Combining multiple URL shortener streams"
goo.gl
console.https://hootsuite.com/pages/owly besides Bitly is suggested as an alternative.
Google Chrome 60.0.3112.90
Fedora 25
The source of the error is
TypeError: Cannot read property 'checking' of undefined
The index.html file in app references value 5.8 but the folder structure is examples > 5 > 7. Updating the value to 5.7 loads the drag-and-drop code as expected.
After downloading the git repo and run npm install && npm install -g gulp && gulp
'rxjs' is imported by app/js/utils/cookies.js, but could not be resolved โ treating it as an external dependency
'rxjs' is imported by app/js/editors.js, but could not be resolved โ treating it as an external dependency
'jquery' is imported by app/js/editors.js, but could not be resolved โ treating it as an external dependency
'codemirror' is imported by app/js/editors.js, but could not be resolved โ treating it as an external dependency
'jquery' is imported by app/js/runtime.js, but could not be resolved โ treating it as an external dependency
The next error, it fixed after update the gulpfile
The sourceMap option has been renamed to "sourcemap" (lowercase "m") in Rollup. The old form is now deprecated in rollup-stream. options.entry is deprecated, use options.input
return rollup({
input: './app/js/runtime.js',
sourcemap: true,
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.