About the Author xi
About the Technical Reviewer xiii
Introduction xv
Chapter 1: Introduction to Angular Framework 1
Chapter 2: Introduction to TypeScript and ES6 13
Chapter 3: RestApp Part 1 75
Chapter 4: RestApp Part 2 125
Chapter 5: AuthApp 157
Chapter 6: Blog App Part 1 203
Chapter 7: Blog App Part 2 231
Chapter 8: Blog App Part 3: Showing Posts 263
Chapter 9: Blog App Part 4: Filtering Posts 283
Chapter 10: Blog App Part 5: Adding Posts 301
Chapter 11: Blog App Part 6: Editing Posts 319
Chapter 12: Blog App Part 7: Deleting Posts 337
Chapter 13: Testing 347
Index 367
Immerse yourself in the architecture of an Angular application, starting with an introduction to TypeScript and ES6, and progressing to modules and components used to build complex applications. This book presents a hands-on approach to becoming a proficient Angular developer by building three complete applications.
You’ll start with an overview of the Angular framework where TypeScript and ES6 are introduced. Next you’ll see how to build an application (RestApp) using the in-memory module to mock an API that communicates with a rest API performing crud operations. This is followed by an application (AuthApp) that uses a third party service to provide authentication and authorization capabilities to handle registrations. You’ll then build an application (BlogApp) that communicates with a MongoDB database in six parts.
Part 1 covers MongoDB, how to install bootstrap, login service, and adding the logic of the form. Part 2 covers how to start the project on the server, create the database and AuthService, and save the user in the session. In Parts 3 and 4 you will learn to create the post collection, post component, and sharpen details. In Parts 5 and 6 you will study adding, editing, and deleting posts with testing.
By the end of the book you'll have the necessary knowledge to write and execute automated tests on your applications, and deploy them to a server.
What You’ll Learn
Divide the logic of an application into components
Communicate with an API
Release the power of the observables to solve asynchronous programming problems
Include Bootstrap so that your application looks great on different devices
Who This Book Is For
Web developers with basic knowledge of JavaScript, HTML, and CSS.