Start up
flight_takeoff Getting Started with MediDash
This guide will walk you through the initial steps of customizing and extending the MediDash template. We'll cover how to create a new module with routing and how to add a new component to a feature module. This will give you a solid foundation for building your own features and functionalities on top of the template.
create_new_folder Create a New Module with Routing
To create a new feature module with its own routing, you can use the Angular CLI.
Run the following command from the root directory of your project. Replace
module-name with the desired name of your module.
ng generate module <module-name> --routing
For example, to create a new module named employee, you would run:
ng generate module employee --routing
This command will create a new folder with the module name, a module file, and a routing file for the new module.
add_to_photos Add a Component to a Feature Module
To add a new component to a feature module, you can use the Angular CLI. Run the
following command from the root directory of your project. Replace
module-name with the name of the module and
component-name with the name of your component.
ng generate component <module-name>/<component-name>
For example, to create a new component named salary in the
employee module, you would run:
ng generate component employee/salary
This command will create a new folder with the component name, a component file, a template file, and a stylesheet for the new component.
link Helpful Resources
For more information on lazy loading feature modules in Angular, please refer to the official Angular documentation:
| Topic | URL |
|---|---|
| Lazy Loading NgModules | https://angular.io/guide/lazy-loading-ngmodules |