Book Image

Angular Projects

By : Zama Khan Mohammed
Book Image

Angular Projects

By: Zama Khan Mohammed

Overview of this book

<p>Angular is one of the best frameworks, not only for building web applications, but also for building applications on other platforms such as desktop and mobile. It is packed with amazing web tools that allow developers to become more productive and make the development experience a happier one </p><p>This book will be your practical guide when it comes to building optimized web apps using Angular. The book explores a number of popular features, including the experimental Ivy rendered, lazy loading, and differential loading, among others, in the projects. It starts with the basics of Angular and its tools, which will help you to develop and debug Angular applications. You will learn how to create an SPA using Angular Router, and optimize it by code splitting and Preloading Routes. We will then build a form-heavy application and make forms reactive by using Reactive Forms. After that, we will learn how to build a Progressive Web App, and a server-side rendering app, as well as a MonoRepo app. Furthermore, we will also dive into building mobile apps using Ionic and NativeScript. Finally, we end the book by creating a component library for our application using Angular CDK and then testing it. </p><p>By the end of this book, you’ll have gained comprehensive insights into using Angular, along with hands-on experience in creating intuitive real-world applications.</p>
Table of Contents (19 chapters)
Title Page
Copyright and Credits
Dedication
Foreword

Creating a new project and a component

Let's start by creating a new project using Angular Console and name it ng-flashcards. As this is our first chapter, we will use Angular Console to run Angular CLI commands, rather than using terminal to run them.

We will be using Bulma for this project. Bulma is a CSS framework that provides CSS for different styled elements and components. You can find more information about Bulma at https://bulma.io/. Let's get started:

  1. Let's first add Bulma CSS to our application. To add Bulma CSS, we will need to install it using npm by going to the projects folder in Terminal:
> npm install bulma
  1. In order to include the Bulma CSS file globally in the project, which is an external CSS file, we will have to update the angular.json file. Let's open the project in VS Code, open the angular.json file, and...