Create Event Service

Let's now add a service for creating events and write tests for this service.

Now that the interceptor has been created, we can move on to adding an event-creating service for creating events. First, generate the service.

ng g service services/events/events

Then create a model for events.

ng g interface services/events/event

Get hands-on with 1400+ tech skills courses.