Sharing Top Content from the Angular-sphere.

@robwormald @NutonDev @angular @toddmotto @BenLesh The reference implementation on is a goo…

  • The Observable type can be used to model push-based data sources such as DOM events, timer intervals, and sockets.
  • In addition, observables are: – – Using the Observable constructor, we can create a function which returns an observable stream of events for an arbitrary DOM element and event type.
  • The Observable type represents one of the fundamental protocols for processing asynchronous streams of data.
  • By offering Observable as a component of the ECMAScript standard library, we allow platforms and applications to share a common push-based stream protocol.
  • Converting from an object which supports to an Observable: – – Converting from an iterable to an Observable: – – An Observer is used to receive data from an Observable, and is supplied as an argument to subscribe.

proposal-observable – Observables for ECMAScript

GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.

demo Make “subscribe” return a subscription object. Oct 16, 2015

src Catching errors thrown from Observer getters Jan 10, 2017

util Add shell script for publishing to gh-pages branch. Dec 2, 2015

.babelrc Transpile to commonjs modules; add main and version to enable requiring. Sep 15, 2017

.gitignore Transpile to commonjs modules; add main and version to enable requiring. Sep 15, 2017

.npmignore Transpile to commonjs modules; add main and version to enable requiring. Sep 15, 2017

Can Observable be built on Cancel Tokens.md fix(cancel tokens): use straight quotes (“) in code Apr 5, 2017

build-tests.js Restructure repository and add es-observable-tests package. Sep 2, 2015

package.json Transpile to commonjs modules; add main and version to enable requiring. Sep 15, 2017

run-tests.js Add unit tests. Aug 15, 2015

This proposal introduces an Observable type to the ECMAScript standard library. The Observable type can be used to model push-based data sources such as DOM events, timer intervals, and sockets. In addition, observables are:

Using the Observable constructor, we can create a function which returns an observable stream of events for an arbitrary DOM element and event type.

function listen(element, eventName) { return new Observable(observer =>…

GitHub

Comments are closed, but trackbacks and pingbacks are open.