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

Angular

Angular is an opinionated JavaScript framework developed and maintained by Google. At the time of writing, it's currently approaching version 5 and offers a structured standards-based approach to web development. It uses TypeScript to enforce type safety and ECMAScript 2015 > support.

In comparison to Angular, Vue looks to enforce a smaller set of constraints and allows the developer more choice. One of Angular's core competencies is TypeScript everywhere. Most developers that came from Angular.js were hearing about TypeScript for the first time when Angular 2 was announced, and I noticed a fair amount of backlash because of the need to "learn a new language". The thing is, JavaScript is TypeScript and the value of increased tooling (autocompletion, refactoring, type safety, and much more) cannot be overlooked.

This is especially true when it comes to working on enterprise projects as the onboarding challenge gets harder with increased project complexity and team size. With TypeScript, we're able to better reason about the relationships between our code at scale. It's this structured development experience that is the prime strength of Angular. This is why the Angular team chose TypeScript as the primary development tool. The benefits of TypeScript are not limited to Angular; we'll be looking at how we can integrate Vue with TypeScript to gain these same benefits later on in the book.

Are there any drawbacks to using Angular as a development framework? Not necessarily. When we're comparing it to Vue, the onboarding experience is vitally different.

主站蜘蛛池模板: 师宗县| 东乡族自治县| 葫芦岛市| 淄博市| 精河县| 石柱| 昂仁县| 益阳市| 铁岭县| 鸡西市| 屏东市| 红河县| 增城市| 黑山县| 习水县| 汶上县| 海林市| 金沙县| 松潘县| 灵宝市| 张家口市| 嘉义市| 长兴县| 林芝县| 海安县| 宜良县| 蓬溪县| 阳城县| 湘阴县| 健康| 浏阳市| 延川县| 新安县| 隆子县| 威宁| 赤城县| 新泰市| 镇远县| 湟源县| 临泽县| 武功县|