Angular - umd.js vs rx.umd.js

Following the Angular tutorial, you can see:

<script src="node_modules/angular2/bundles/angular2.umd.js"></script>

used https://angular.io/docs/js/latest/guide/forms.html , and

<script src="node_modules/rxjs/bundles/Rx.umd.js"></script>

used in https://angular.io/docs/js/latest/quickstart.html

Can someone explain or point to a document that explains when to call which JS file. thanks in advance

+4
source share
1 answer

UMD devices are intended for users who write in ES5 and for those users who are interested ngUpgrade.

overview.md, https://code.angularjs.org/2.0.0-beta.0/, , . http://angular.io, .

ES5 ngUpgrade

ES5 AngularJS 1.x, ngUpgrade, UMD.   , .

: UMD "". .

Rx.umd.js( -, ) Angular2 UMD.

/ , .

Update

overview, -, . overview.md.

+3

Source: https://habr.com/ru/post/1621617/


All Articles