官术网_书友最值得收藏!

Angular

AngularJS (https://angularjs.org) (version 1.x) is a client-side MVVM framework, maintained by Google, which helps to develop Single Page Applications (SPA). It is based on a declarative programming model and it extends standard HTML with the ability to add additional behavior, elements, and attributes through directives. 

Angular (https://angular.io)(version 2 and above) is a complete rewrite of the framework and hence is not backward compatible with AngularJS. Angular is written in TypeScript and recommends the use of TypeScript to write Angular applications as well. Angular removed some of the concepts that were used in AngularJS such as scope, controller, factory, and so on. It also has a different syntax for binding attributes and events. Another major difference is that the Angular library is modular and hence you can choose the modules that you need, to reduce bundle size. Angular also introduced advanced concepts such as AOT (Ahead of Time Compilation), lazy loading, reactive programming, and so on.

TypeScript is a superset of ECMAScript 6 (ES6 - version 6 of JavaScript) and is backward compatible with ES5. It has additional features such as static typing, generics, class attribute visibility modifiers, and so on. Since TypeScript is a superset of ES6, we can also use ES6 features ( http://es6-features.org) such as modules, lambdas (arrow functions), generators, iterators, string templates, reflection, spread operators, and so on.
主站蜘蛛池模板: 古蔺县| 沂水县| 当雄县| 普陀区| 龙游县| 余江县| 左云县| 左贡县| 隆回县| 高淳县| 明水县| 台东县| 丽江市| 建瓯市| 巴楚县| 大竹县| 木兰县| 禄丰县| 东乌珠穆沁旗| 钟祥市| 安岳县| 门头沟区| 岳阳市| 五指山市| 饶河县| 什邡市| 东乡族自治县| 资兴市| 剑川县| 南郑县| 和硕县| 宜兰市| 锡林郭勒盟| 九江市| 察雅县| 八宿县| 志丹县| 麻江县| 加查县| 师宗县| 东明县|