| Introduction |
|
1 | (4) |
|
1 Jumping into JavaScript |
|
|
5 | (24) |
|
Setting Up a JavaScript Development' Environment |
|
|
5 | (1) |
|
|
|
6 | (1) |
|
Understanding JavaScript Data Types |
|
|
6 | (2) |
|
|
|
8 | (3) |
|
|
|
8 | (1) |
|
|
|
8 | (1) |
|
Applying Comparison and Conditional Operators |
|
|
9 | (2) |
|
|
|
11 | (3) |
|
|
|
11 | (1) |
|
|
|
12 | (1) |
|
|
|
12 | (1) |
|
|
|
13 | (1) |
|
|
|
13 | (1) |
|
|
|
14 | (2) |
|
|
|
14 | (1) |
|
Passing Variables to Functions |
|
|
15 | (1) |
|
Returning Values from Functions |
|
|
15 | (1) |
|
Using Anonymous Functions |
|
|
16 | (1) |
|
Understanding Variable Scope |
|
|
16 | (1) |
|
|
|
17 | (2) |
|
|
|
17 | (1) |
|
Creating Custom Defined Objects |
|
|
18 | (1) |
|
Using a Prototyping Object Pattern |
|
|
19 | (1) |
|
|
|
19 | (3) |
|
|
|
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) |
|
|
|
22 | (3) |
|
|
|
24 | (1) |
|
|
|
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) |
|
|
|
25 | (2) |
|
|
|
26 | (1) |
|
|
|
26 | (1) |
|
|
|
27 | (1) |
|
|
|
27 | (2) |
|
2 Jumping into Typescript |
|
|
29 | (8) |
|
Learning the Different Types |
|
|
29 | (2) |
|
|
|
31 | (1) |
|
|
|
32 | (1) |
|
|
|
33 | (1) |
|
|
|
33 | (1) |
|
|
|
34 | (1) |
|
|
|
35 | (2) |
|
3 Getting Started with Angular |
|
|
37 | (12) |
|
|
|
37 | (1) |
|
|
|
37 | (2) |
|
|
|
38 | (1) |
|
|
|
38 | (1) |
|
|
|
38 | (1) |
|
|
|
38 | (1) |
|
|
|
39 | (1) |
|
Separation of Responsibilities |
|
|
39 | (1) |
|
Adding Angular to Your Environment |
|
|
39 | (1) |
|
|
|
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) |
|
|
|
48 | (1) |
|
|
|
49 | (12) |
|
|
|
49 | (1) |
|
|
|
50 | (1) |
|
|
|
50 | (3) |
|
Using Inline CSS and HTML in Angular Applications |
|
|
51 | (2) |
|
|
|
53 | (1) |
|
|
|
54 | (2) |
|
|
|
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) |
|
|
|
60 | (1) |
|
|
|
61 | (14) |
|
|
|
61 | (7) |
|
|
|
62 | (2) |
|
Interacting with the Component Class in Expressions |
|
|
64 | (1) |
|
Using TypeScript in Angular Expressions |
|
|
65 | (3) |
|
|
|
68 | (4) |
|
|
|
69 | (2) |
|
|
|
71 | (1) |
|
|
|
72 | (2) |
|
|
|
73 | (1) |
|
|
|
74 | (1) |
|
|
|
75 | (12) |
|
Understanding Data Binding |
|
|
75 | (11) |
|
|
|
76 | (1) |
|
|
|
77 | (1) |
|
|
|
78 | (1) |
|
|
|
79 | (2) |
|
|
|
81 | (1) |
|
|
|
82 | (3) |
|
|
|
85 | (1) |
|
|
|
86 | (1) |
|
|
|
87 | (8) |
|
|
|
87 | (1) |
|
Using Built-in Directives |
|
|
87 | (7) |
|
|
|
88 | (1) |
|
|
|
88 | (3) |
|
|
|
91 | (3) |
|
|
|
94 | (1) |
|
|
|
95 | (8) |
|
Creating a Custom Attribute Directive |
|
|
95 | (3) |
|
Creating a Custom Directive with a Component |
|
|
98 | (4) |
|
|
|
102 | (1) |
|
9 Events and Change Detection |
|
|
103 | (12) |
|
|
|
103 | (1) |
|
|
|
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) |
|
|
|
110 | (4) |
|
Creating an Observable Object |
|
|
110 | (1) |
|
Watching for Data Changes with Observables |
|
|
111 | (3) |
|
|
|
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) |
|
|
|
134 | (1) |
|
Implementing a Simple Router |
|
|
134 | (4) |
|
Implementing a Router with a Navigation Bar |
|
|
138 | (5) |
|
Implementing a Router with Parameters |
|
|
143 | (4) |
|
|
|
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) |
|
|
|
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) |
|
|
|
193 | (2) |
| Index |
|
195 | |