Create Delete Dialog

The fastest way to create a delete dialog in a feature module is to use the OneCX generator.

To run the generator, execute the following command:

nx generate <namespaceOfTheGenerator>/nx-plugin:delete <feature>
  • <feature>: see here.

Next, the CLI will ask you whether you want to customize names for the generation. When answering yes, the next few questions will ask you about names for the API. This can be useful if you want to adapt to a legacy API. When modifying names, assure that you use the same custom names for all generated components of the feature (search, details, create-update, delete) for the data object name, and the api service name as these ones are shared.