Create Event Update Component
Let's add the event update component to the event module.
We'll cover the following...
Now that the update method of EventsService
is ready, we can add the last component to EventModule
.
Setup and routing
First, we’ll create our component, adding it to the existing event
directory.
ng g component event/event-update
With this command, the CLI created our new component in src/app/event
. It also added the component to the declarations in EventModule
.
CREATE src/app/event/event-update/event-update.component.css
CREATE src/app/event/event-update/event-update.component.html
CREATE src/app/event/event-update/event-update.component.spec.ts
CREATE src/app/event/event-update/event-update.component.ts
UPDA
...