Implementing the Angular module

The second part of your CRUD module is the Angular module. This module will contain an Angular service that will communicate with the Express API using the http client, an Angular Article component that will contain four subcomponents with a set of templates that provide your users with an interface to perform CRUD operations. Before you begin creating your Angular entities, let's first create the initial module structure. Go to your application's public/app folder and create a new folder named articles. In this new folder, create the module file named articles.module.ts and paste the following lines of code:

import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule ...

Get MEAN Web Development - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.