Best practice to respect the look and feel for metronic CRUD operation
Hello to everybody,
I write you since we've a regular license support and I wish to take the best from Metronic template, I need to perform some CRUD operations on some items I access via REST API.
In my particular case I want to know what's the best practice to insert/edit an item. Currently I've developed it as a popup (opened using NgBootstrap's NgbModal) and on it's close I perform the update process on my side. Is this ok? or it's best to redirect to a new page where I have the insert/update form?
To show confirmation I used SweetAlert2 npm which doesn't came with Angular Demo1 template.. is this fine or it's best to use other approach?
It's hard to give you the exact answer, cause it depends on the business needs.
I would say, if the form includes 5-10 fields (without subforms/tabs) it's better to do it in the modal. If it's bigger and has a big internal logic - better have the edit form on the separated page.