https://github.com/robertobdev/my-admin
https://github.com/robertobdev/my-admin
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/robertobdev/my-admin
- Owner: robertobdev
- Created: 2021-03-16T23:11:46.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-06-16T00:36:59.000Z (almost 5 years ago)
- Last Synced: 2025-01-23T08:16:39.370Z (about 1 year ago)
- Language: TypeScript
- Size: 2.02 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MyAdmin
## Create new module (crud)
1. Create module
```bash
ng g m pages/MODULE_NAME --routing
```
2. Create a base component for you module
```bash
ng g c pages/MODULE_NAME
```
> NOTE: Four files will be create, You just need .component file, delete the rest.
2.1 Code snippet for you .component
```bash
import { Component } from '@angular/core';
@Component({
selector: 'app-components',
template: ` `,
})
export class MODULE_NAMEComponent {}
```
3. Create componets (REGISTER AND LIST)
```bash
ng g c pages/MODULE_NAME/register-MODULE_NAME
ng g c pages/MODULE_NAME/list-MODULE_NAME
```
4. Link APP Routing to your module
Add your created module into `pages-routing.module.ts` as lazy loading
5. Link your create components in your MODULE_NAME-routing.module.ts file