concept step in category angular

This is an excerpt from Manning's book Getting MEAN with Mongo, Express, Angular, and Node.js 2ED.
In both approaches—one-way and two-way binding—step 1 is similar. You use the data to generate some HTML markup for the end user to see. Step 2 is where things get a bit different.
In step 2, you want to let the user enter some text in a form field to filter the list of data being displayed. With one-way data binding, you have to add event listeners to the form input field manually to capture the data and update the data model (to ultimately change what’s displayed to the user).
With two-way data binding, any updates to the form can be captured automatically, updating the model and changing what’s displayed to the user. This capability may not sound like a big deal, but to understand its power, it’s good to know that with Angular, you can achieve everything in steps 1 and 2 without writing a single line of JavaScript code! That’s right—it’s all done with Angular’s two-way data binding ... and a bit of help from some other Angular features.
Throughout the book, you’ll follow the five stages of development, but with a couple of twists so that you get to see the whole stack in action. Before looking at the steps in detail, quickly remind yourself of the proposed architecture shown in figure 2.14.
Step 1: Create a file called db.js in app_server/models, and save it. For now, you’ll require Mongoose in this file with the following single command line: const mongoose = require('mongoose');