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 } from '@angular/forms'; import { RouterModule } from '@angular/router'; import { ArticlesRoutes } from './articles.routes'; import { ArticlesComponent } from './articles.component'; import { CreateComponent } from './create/create...