Outline

Creating our Model

Before we can connect our frontend with our backend it's a good idea to create a model that represents our Camp. Typescript gives us the ability to type our variables so let's leverage that and create a Camp type.

A model is a simple Typescript class that defines all the properties of a Camp.

Your Turn

For your application create a Model just like we did in the .NET side. Models commonly exist under a shared folder followed by models folder. Match the same data types with those in your backend. Having a model will help us more easily communicate between our front and backend.