Summary
We need a screen that will show the details of an individual script. Later we'll have it be the place the script is edited. In this task, add a new screen with a route to it. Just leave it as the default generated screen for now. there will be further updates to it in later tasks.
Implementation Details
-
Use angular cli from the root directory of the project to generate a module. First run it with the --dry-run, and it will print what it is going to do. Then remove the --dry-run flag, and it will actually create it.
ng generate module script-details-screen --dry-run
-
Use angular cli from the root directory of the project to generate a component. The -module=app should add it to the app module. Do the dry run first.
ng generate component script-details-screen -module=app --dry-run
-
Make sure the new screen is imported into the app module like the other screens, and included in the imports list like the other screens.
-
Add it to the app-routing-module, like the other two screens were added, with a path of screen/details.
Add
Summary
We need a screen that will show the details of an individual script. Later we'll have it be the place the script is edited. In this task, add a new screen with a route to it. Just leave it as the default generated screen for now. there will be further updates to it in later tasks.
Implementation Details
Use angular cli from the root directory of the project to generate a module. First run it with the
--dry-run, and it will print what it is going to do. Then remove the--dry-runflag, and it will actually create it.ng generate module script-details-screen --dry-runUse angular cli from the root directory of the project to generate a component. The
-module=appshould add it to the app module. Do the dry run first.ng generate component script-details-screen -module=app --dry-runMake sure the new screen is imported into the app module like the other screens, and included in the imports list like the other screens.
Add it to the
app-routing-module, like the other two screens were added, with a path ofscreen/details.Add