K
K
Kate07052022-01-21 10:49:47
Angular
Kate0705, 2022-01-21 10:49:47

How to hide and show "update" button in Angular?

Please help me with two questions.

1) How to prevent users with a certain role from editing . For example, permission tables.
2) How to implement the functionality of the button, in such a way that hide the Update button when there are no changes (Show only when the user has any of the checkboxes)
1 screen view, 2 screen code
61ea62db952d3371193552.png
61ea6565eabfe598538468.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Leonid Yakovlev, 2022-01-30
@deleo547

For example:
1. Get a list of user roles and, if not needed, disable checkboxes.
2. Check whether checkboxes were touched or not and depending on this, show or not.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question