Muutke küpsiste eelistusi

Learning Angular: A Hands-On Guide to Angular 2 and Angular 4 2nd edition [Pehme köide]

  • Formaat: Paperback / softback, 240 pages, kõrgus x laius x paksus: 229x178x13 mm, kaal: 392 g
  • Sari: Learning
  • Ilmumisaeg: 18-Oct-2017
  • Kirjastus: Addison Wesley
  • ISBN-10: 0134576977
  • ISBN-13: 9780134576978
Teised raamatud teemal:
  • Pehme köide
  • Hind: 34,85 €*
  • * hind on lõplik, st. muud allahindlused enam ei rakendu
  • Tavahind: 49,81 €
  • Säästad 30%
  • Raamatu kohalejõudmiseks kirjastusest kulub orienteeruvalt 3-4 nädalat
  • Kogus:
  • Lisa ostukorvi
  • Tasuta tarne
  • Tellimisaeg 2-4 nädalat
  • Lisa soovinimekirja
  • Formaat: Paperback / softback, 240 pages, kõrgus x laius x paksus: 229x178x13 mm, kaal: 392 g
  • Sari: Learning
  • Ilmumisaeg: 18-Oct-2017
  • Kirjastus: Addison Wesley
  • ISBN-10: 0134576977
  • ISBN-13: 9780134576978
Teised raamatud teemal:
Learning Angular, Second Edition

A Hands-On Guide to Angular 2 and Angular 4











Learning Angular teaches modern application development with Angular 2 and Angular 4. It begins with the basics of Angular and the technologies and techniques used throughout the book, such as key features of TypeScript, newer ES6 syntax and concepts, and details about the tools needed to write professional Angular applications.

 

The reader will next build an Angular application from scratch while learning about the primary pieces of an Angular application and see how they work together. Using lots of examples, the core parts of Angular will be introduced, such as Components, the Router, and Services.

 

The book also covers techniques like server-side rendering and how to incrementally add Angular 2+ features to existing AngularJS applications. Finally, the reader will gain insight into advanced skills that should be part of any professional Angular developers toolkit such as testing, tooling options, and performance tuning.









Understand how Angular is organized and learn best practices for designing Angular applications Quickly build Angular templates with built-in directives that enhance the user experience Bind UI elements to your data model, so changes to your model and UI occur automatically in tandem Define custom Angular directives that extend HTML Implement zoomable images, expandable lists, and other rich UI components Implement client-side services that interact with web servers Build dynamic browser views to provide even richer user interaction Create custom services you can easily reuse Implement rich UI components as custom Angular directives









Contents at a Glance







Introduction













What is Angular Why Use Angular Who this Book is For How to Use this Book Getting the Source Code







Chapter 1: Jumping into JavaScript













Setting Up a JavaScript Development Environment Defining Variables Understanding JavaScript Data Types Using Operators Implementing Looping Creating Functions Understanding Variable Scope Using JavaScript Objects Manipulating Strings Working with Arrays Adding Error Handling







Chapter 2: Jumping into TypeScript

















Learning the Different Types Understanding Interfaces Implementing Classes Implementing Modules Understanding Functions







Chapter 3: Getting Started with Angular













Why Angular? Understanding Angular Separation of Responsibilities Adding Angular to Your Environment Using the Angular CLI Creating a Basic Angular Application







Chapter 4: Angular Components













Component Configuration Building the Template Using Constructors Using External Templates Implementing Directives







Chapter 5: Expressions













Using Expressions Using Pipes Building a Custom Pipe







Chapter 6: Data Binding













Understanding Data Binding Interpolation Property Binding Attribute Binding Class Binding Style Binding Event Binding Two-Way Binding







Chapter 7: Built-in Directives













Understanding Directives Using Built-in Directives Structural Directives Attribute Directives







Chapter 8: Custom Directives









Creating a Custom Attribute Directive Creating a Custom Directive with a Component







Chapter 9: Events and Change Detection













Using Browser Events Emitting Custom Events Using Observables







Chapter 10: Implementing Angular Services in Web Applications













Understanding Angular Services Using the Built in Services Sending HTTP GET and PUT Requests with the http Service Implementing a Simple Mock Server Using the http Service Changing Views with the router Service Implementing a Router with a Navigation Bar Implementing a Router with Parameters







Chapter 11: Creating Your Own Custom Angular Service













Integrating Custom Services into Angular Applications Implementing a Simple Application That Uses a Constant Data Service Implementing a Data Transform Service Implementing a Variable Data Service Implementing a Service that Returns a Promise Implementing a Shared Service











Chapter 12: Having Fun with Angular













Implementing an Angular Application That Uses the Animation Service Implementing an Angular Application That Zooms in on Images Implementing an Angular Application That Enables Drag and Drop Implementing a Star Rating Angular Component
Introduction 1(4)
1 Jumping into JavaScript
5(24)
Setting Up a JavaScript Development' Environment
5(1)
Defining Variables
6(1)
Understanding JavaScript Data Types
6(2)
Using Operators
8(3)
Arithmetic Operators
8(1)
Assignment Operators
8(1)
Applying Comparison and Conditional Operators
9(2)
Implementing Looping
11(3)
While Loops
11(1)
do/while Loops
12(1)
For Loops
12(1)
for/in Loops
13(1)
Interrupting Loops
13(1)
Creating Functions
14(2)
Defining Functions
14(1)
Passing Variables to Functions
15(1)
Returning Values from Functions
15(1)
Using Anonymous Functions
16(1)
Understanding Variable Scope
16(1)
Using JavaScript Objects
17(2)
Using Object Syntax
17(1)
Creating Custom Defined Objects
18(1)
Using a Prototyping Object Pattern
19(1)
Manipulating Strings
19(3)
Combining Strings
21(1)
Searching a String for a Substring
21(1)
Replacing a Word in a String
22(1)
Splitting a String into an Array
22(1)
Working with Arrays
22(3)
Combining Arrays
24(1)
Iterating Through Arrays
24(1)
Converting an Array into a String
24(1)
Checking Whether an Array Contains an Item
25(1)
Adding Items to and Removing Items from Arrays
25(1)
Adding Error Handling
25(2)
try/catch Blocks
26(1)
Throwing Your Own Errors
26(1)
Using finally
27(1)
Summary
27(2)
2 Jumping into Typescript
29(8)
Learning the Different Types
29(2)
Understanding Interfaces
31(1)
Implementing Classes
32(1)
Class Inheritance
33(1)
Implementing Modules
33(1)
Understanding Functions
34(1)
Summary
35(2)
3 Getting Started with Angular
37(12)
Why Angular?
37(1)
Understanding Angular
37(2)
Modules
38(1)
Directives
38(1)
Data Binding
38(1)
Dependency Injection
38(1)
Services
39(1)
Separation of Responsibilities
39(1)
Adding Angular to Your Environment
39(1)
Using the Angular CLI
40(1)
Generating Content with the CLI
40(1)
Creating a Basic Angular Application
41(7)
Creating Your First Angular App
42(1)
Understanding and Using NgModule
43(1)
Creating the Angular Bootstrapper
44(4)
Summary
48(1)
4 Angular Components
49(12)
Component Configuration
49(1)
Defining a Selector
50(1)
Building a Template
50(3)
Using Inline CSS and HTML in Angular Applications
51(2)
Using Constructors
53(1)
Using External Templates
54(2)
Injecting Directives
56(4)
Building a Nested Component with Dependency Injection
56(2)
Passing in Data with Dependency Injection
58(1)
Creating an Angular Application that Uses Inputs
59(1)
Summary
60(1)
5 Expressions
61(14)
Using Expressions
61(7)
Using Basic Expressions
62(2)
Interacting with the Component Class in Expressions
64(1)
Using TypeScript in Angular Expressions
65(3)
Using Pipes
68(4)
Using Built-in Pipes
69(2)
Using Built-in Pipes
71(1)
Building a Custom Pipe
72(2)
Creating a Custom Pipe
73(1)
Summary
74(1)
6 Data Binding
75(12)
Understanding Data Binding
75(11)
Interpolation
76(1)
Property Binding
77(1)
Attribute Binding
78(1)
Class Binding
79(2)
Style Binding
81(1)
Event Binding
82(3)
Two-Way Binding
85(1)
Summary
86(1)
7 Built-in Directives
87(8)
Understanding Directives
87(1)
Using Built-in Directives
87(7)
Components Directives
88(1)
Structural Directives
88(3)
Attribute Directives
91(3)
Summary
94(1)
8 Custom Directives
95(8)
Creating a Custom Attribute Directive
95(3)
Creating a Custom Directive with a Component
98(4)
Summary
102(1)
9 Events and Change Detection
103(12)
Using Browser Events
103(1)
Emitting Custom Events
104(6)
Emitting a Custom Event to the Parent Component Hierarchy
104(1)
Handling Custom Events with a Listener
104(1)
Implementing Custom Events in Nested Components
104(3)
Deleting Data in a Parent Component from a Child Component
107(3)
Using Observables
110(4)
Creating an Observable Object
110(1)
Watching for Data Changes with Observables
111(3)
Summary
114(1)
10 Implementing Angular Services in Web Applications
115(34)
Understanding Angular Services
115(1)
Using the Built-in Services
115(1)
Sending HTTP GET and PUT Requests with the http Service
116(5)
Configuring the HTTP Request
117(1)
Implementing the HTTP Response Callback Functions
117(1)
Implementing a Simple JSON File and Using the http Service to Access It
118(3)
Implementing a Simple Mock Server Using the http Service
121(11)
Implementing a Simple Mock Server and Using the http Service to Update Items on the Server
127(5)
Changing Views with the router Service
132(6)
Using routes in Angular
134(1)
Implementing a Simple Router
134(4)
Implementing a Router with a Navigation Bar
138(5)
Implementing a Router with Parameters
143(4)
Summary
147(2)
11 Creating Your Own Custom Angular Services
149(22)
Integrating Custom Services into Angular Applications
149(2)
Adding an Angular Service to an Application
150(1)
Implementing a Simple Application that Uses a Constant Data Service
151(1)
Implementing a Data Transform Service
152(4)
Implementing a Variable Data Service
156(5)
Implementing a Service that Returns a Promise
161(1)
Implementing a Shared Service
162(7)
Summary
169(2)
12 Having Fun with Angular
171(24)
Implementing an Angular Application that Uses the Animation Service
171(5)
Implementing an Angular Application that Zooms in on Images
176(3)
Implementing an Angular Application that Enables Drag and Drop
179(6)
Implementing a Star Rating Angular Component
185(8)
Summary
193(2)
Index 195
Brad Dayley is a senior software engineer with more than 20 years of experience developing enterprise applications and web interfaces. He has used JavaScript and jQuery for years and is the author of Node.JS, MongoDB and Angular Web Development; jQuery and JavaScript Phrasebook; and Sams Teach Yourself AngularJS, JavaScript, and jQuery All in One. He has designed and implemented a wide array of applications and services, from application servers to complex web applications.

Brendan Dayley is a web application developer who loves learning and implementing the latest and greatest technologies. He is the co-author of Sams Teach Yourself AngularJS, JavaScript, and jQuery All in One and Node.JS, MongoDB and Angular Web Development. He has written a number of web applications using JavaScript, TypeScript, and Angular, and he is exploring the capabilities of new web and mobile technologies such as augmented reality and how to use them for innovative solutions.

Caleb Dayley is a university student who is studying computer science. Introduced to software development at a young age, he has taught himself much of what he knows about computer programming. He is a developer in JavaScript, Python, and C#, and is a big fan of the Unity platform. He is also the co-author of Node.JS, MongoDB and Angular Web Development. He is excited for what the future holds, and the opportunities to help design and create the next generation of innovative software that will continue to improve the way we live, work, and play