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

Angular architecture

Before we discuss architecture, let's see what's new in Angular. The primary focus of Angular is mobiles, as it is important to consider the performance and loading time of the application on a mobile phone. Many modules are decoupled from the Angular core, leaving only the modules that are definitely core; removing unwanted modules from Angular core leads to better performance.

Angular targets ES6 and leverages TypeScript as a development script language that enables compile time checks for types, rather than at runtime. TypeScript provides additional information about classes when instantiating them by annotating metadata to the classes. You can also use ES5 and Dart as the development language. There is an improved version of Dependency Injection that supports child injectors and instance scope. Router was rewritten completely and the component router was introduced. The Component Directive, the Decorator Directive, and the Template Directive are supported in Angular. The $scope has been completely removed from Angular.

The architecture of Angular comprises Modules, Components, Templates, Metadata, Directives, and Services:

主站蜘蛛池模板: 临西县| 张家港市| 铜山县| 延长县| 云林县| 彩票| 甘德县| 黎平县| 安多县| 通海县| 万州区| 光山县| 扬中市| 福海县| 民乐县| 南安市| 深水埗区| 阿克| 湘潭县| 太谷县| 申扎县| 灵丘县| 固原市| 开化县| 城固县| 濮阳县| 城固县| 准格尔旗| 儋州市| 五峰| 莱州市| 雷山县| 镇平县| 合江县| 凉山| 沙河市| 霞浦县| 昭平县| 苍溪县| 石渠县| 资源县|