Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- enum ModalTypes {
- Add,
- Edit
- }
- public openManageModal(type: ModalTypes) {
- if (type == ModalTypes.Add) {
- //Open edit modal
- }
- else {
- //Open add modal
- }
- }
- openManageModal(0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement