Using the CLI, nagivate into the directory you want the new component, then simply:
The CLI will do the heavy lifting and create the following with corresponding names:
It will also attempt to update your app module file. Double check and make sure your new component is imported into app.module.ts:
for example in app.module.ts:
And define those declarations/imports in @NgModule:
next we'll need to create a route for this component, edit app.routes.ts:
and add a new path with the url you desire for this route:
Now you can use this new route in your main nav or wherever you like!