Book Image

Learning Angular - Second Edition

By : Christoffer Noring, Pablo Deeleman
Book Image

Learning Angular - Second Edition

By: Christoffer Noring, Pablo Deeleman

Overview of this book

<p>The latest version of Angular comes with a lot of new features that help you to make your applications smaller and faster. This book will show you how to set up an Angular project, and you’ll build Angular components right from the beginning.</p> <p>Moving on, you’ll explore and work with the components to build your app. Next, you’ll find out more about TypeScript and see how to use it to build apps in the best way possible. You’ll then be introduced to the building blocks - Properties, Events, Directives, and Pipes - and how it can be used to implement and enhance the components.</p> <p>Additionally, you’ll be using Angular components to organize your components in a scalable way. Then you’ll understand how to get data in your app and add navigation to it. Furthermore, you’ll deep dive and work with Forms, Authentication, and see how Material design will help you make your app beautiful in just a few short lines of code. Lastly, you’ll see how to use animating components with Angular, and test and debug the app.</p> <p>All in all, the overall mission is to give you a great start when developing apps using Angular and TypeScript.</p>
Table of Contents (21 chapters)
Title Page
Credits
About the Authors
www.PacktPub.com
Customer Feedback
Preface
2
IDEs and Plugins

Summary


We looked at web components according to modern web standards and how Angular components provide an easy and straightforward API to build our own components. We covered TypeScript and some basic traits of its syntax as a preparation for Chapter 3, Introducing TypeScript. We saw how to set up our working space and where to go to find the dependencies we need to bring TypeScript into the game and use the Angular library in our projects, going through the role of each dependency in our application.

Our first component taught us the basics of creating a component and also allowed us to get more familiar with another important concept, Angular modules, and also how to bootstrap the application. Our second component gave us the opportunity to discuss the form of a controller class containing property fields, constructors, and utility functions, and why metadata annotations are so important in the context of Angular applications to define how our component will integrate itself in the HTML environment where it will live. Our first web component features its own template and such templates host property bindings declaratively in the form of variable interpolations, conveniently formatted by pipes. Binding event listeners is now easier than ever and its syntax is standards-compliant.

The next chapter will cover, in detail, all the TypeScript features we need to know to get up to speed with Angular in no time.