网站首页 软件下载 游戏下载 翻译软件 电子书下载 电影下载 电视剧下载 教程攻略
书名 | Angular 2实例 |
分类 | 人文社科-社会科学-语言文字 |
作者 | (印)钱德玛尼·阿罗拉(Chandermani Arora),(美)凯文·汉尼斯(Kevin Hennessy) |
出版社 | 东南大学出版社 |
下载 | ![]() |
简介 | 内容推荐 Angular 2能够帮助你构建出更快、更有效、更灵活的跨平台应用。它解放了JavaScript的开发,使代码变得更有组织、可读性更好、经受得住测试。本书先后构建了三个复杂度不一的应用。首先是一个简单的猜数字游戏,它作为一个将你带入Angular世界的平台。接下来,你将学习编写一个流行的7分钟锻炼(7 MinuteWorkout)应用,其中涉及了Angular的构建块。很后一个个人助理教练(Personal Trainer)将已经编写好的7分钟锻炼修改成了一个全功能的个人健身及跑步工具,其中涉及了不错指令,这是Angular很基本,也是不错大的特性。除此之外,你还将学到Angular所提供的测试工具以及框架,可用于有效地测试应用。在很后,书中给出了一些实用建议和有用的技巧,在你使用Angular构建更多的应用时,它们会助你一臂之力。 目录 Preface Chapter 1: Getting Started Angular basics The component pattern Using the component pattern in web applications Why weren't components used before in Angular? What's new that enables Angular to use this pattern? Web Components Angular and Web Components Language support in Angular ES2015 TypeScript Putting it all together Angular modules The basic steps to building Angular applications The customary Hello Angular app - Guess the Number! Setting up a development server Building Guess the Number! Designing our first component The host file An HTML page Script tags Custom elements The component file The import statement Decorators Defining the class The module file Bootstrapping We're up-and-running! Digging deeper Interpolation Tracking changes in the number of tries Expressions The safe navigation operator Data binding Property binding Event binding Structural directives Revisiting our app Looking at how our code handles updates Maintaining the state Component as the container for the state Change detection Initializing the app Loading the modules needed by our application Bootstrapping our app Tools Resources Summary Chapter 2: Building Our First App - 7 Minute Workout What is 7 Minute Workout? Downloading the code base Setting up the build The build internals Code transpiling Organizing code The 7 Minute Workout model App bootstrapping App loading with SystemJS Our first component - WorkoutRunnerComponent Component life cycle hooks Building the 7 Minute Workout view The Angular 2 binding infrastructure Interpolations Property binding Property versus attribute Property binding continued Quick expression evaluation Side-effect-free binding expressions Angular directives Target selection for binding Attribute binding Style and class binding Attribute directives Styling HTML with ngClass and ngStyle Exploring Angular modules …… Chapter 3: More Angular 2 - SPA, Routing, and Data Flows in Depth Chapter 4: Personal Trainer Chapter 5: Supporting Server Data Persistence Chapter 6: Angular 2 Directives in Depth Chapter 7: Testing Personal Trainer Chapter 8: Some Practical Scenarios Index |
随便看 |
|
霍普软件下载网电子书栏目提供海量电子书在线免费阅读及下载。