Hey there! I've got a few *NgIf conditions in my template that determine which components (different types of forms) are displayed/rendered. For example, in one of my functions (shown below)
private _onClick(cell:any){
this._enableView = false;
this._enableCreate = true;
this._enableDelete = false;
this._enableEdit = false;
}
I use it to enable the create form in the template and hide other forms if they're present. However, I'm starting to feel like this approach is a bit off or repetitive. Is there a better suggestion or alternative method I could consider instead?