This extension for Visual Studio Code adds the default CRUD template for TOTVS HTML Framework.
THF Suported version: 2.0.0
Usage
- Follow the THF Guide - Getting started to start a project;
- On the
explorer/context access the THF: CRUD Simple option; or use the command palette to access the command THF: CRUD Simple ;
- Inform the CRUD name, in
camelCase , for the component;
- The plugin will generate a new module with the CRUD self-contained.
Register the module to the application module src/app/app.module.ts ;
Register the i18n files to the THF i18n Module:
Add the dynamic route to module as lazy load:
Notes
The simple CRUD component structure will be like, starting at ./src/app/ :
- shared
- interfaces
> totvs-response.interface.ts
- literals
- i18n
> component-name-pt.ts
> component-name-en.ts
> component-name-es.ts
- model
> component-name.ts
- services
> component-name.service.ts
- component-name
- edit
> component-name.edit.component.css
> component-name.edit.component.html
> component-name.edit.component.ts
> component-name.edit.component.spec.ts
> component-name.list.component.css
> component-name.list.component.html
> component-name.list.component.ts
> component-name.list.component.spec.ts
> component-name-routing.module.ts
> component-name.module.ts
Release Notes
1.1.0
- Compatibility with THF 2.0.0 and Angular 6.
1.0.0
- Initial release with the CRUD simple template.
| |