TOTVS HTML Framework Angular CRUD Template for VS CODE
This extension for Visual Studio Code adds the default CRUD template for TOTVS HTML Framework.
THF Suported version: 2.0.0
- Follow the THF Guide - Getting started to start a project;
- On the
explorer/context
access theTHF: CRUD Simple
option; or use thecommand palette
to access the commandTHF: 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:
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
1.1.0
- Compatibility with THF 2.0.0 and Angular 6.
1.0.0
- Initial release with the CRUD simple template.