Add Signup Routing Feature
Let's set the routing for our signup component to access the signup form by appending /signup to our application link.
We'll cover the following...
We can now create our first feature module to consume the signup
method in our service.
Routing
First, we’ll create our signup module using the --routing
flag to create a routing file for our module. Then, we’ll create the signup component.
ng g module signup --routing
ng g component signup
The above command ng g module signup --routing
creates two files. This should be the terminal output:
CREATE src/app/signup/signup-routing.module.ts
CREATE src/app/signup/signup.module.ts
The second command ng g component signup
creates four files and updates one. The terminal should log output similar to this: