Version: 1.x
The Todo Model
Let's create your first model. The CLI provides a useful command to generate a new file with an empty model.
FoalTS uses Mongoose, a complete Object-Document Mapper, to communicate with the MongoDB database.
Open the file todo.model.ts
in the src/app/models
directory and add a text
field.