Rxjs
. . , :
{{ data | async }}
:
data = Rx.Observable.create(...);
http , - :
data = http.get(...);
, - -, . , " ?" , : " ? , , ? (, ) (, )?
( ) , , .
, ():
var stream = new ObservableEventStream('left mouse click')
.skipFirst(3)
.keepLatest()
.combineWith(new ObservableEventStream('right mouse click'))
.throttle(300);
stream.subscribe(event=> { DoSomethingWithClick(event); });
, , , . .
, . .
ZoneJS
Angular2 API- API- , Angular2 , . , Angular2, .
, , alert(timeout), , .
angular 1 $scope.$apply, , - angular. angular 2 - .
ES6 JavaScript- JavaScript. ES6, , - , . Chrome , IE . . , es6-shim angular ES6 , .
A polyfill is almost the same as a gasket, except that it provides support for future standards (not yet standard or at the application stage)
source
share