S
S
Stopy2015-09-28 21:41:07
JavaScript
Stopy, 2015-09-28 21:41:07

How to beautifully and correctly implement a modal window using Angular.js?

How to beautifully and correctly implement a modal window using Angular.js? The buttons called by the window are deep in the Dom tree, how to make it appear/disappear? Create a controller and wrap the entire body in it, or create a directive that will rely on a variable in the rootScope, something like $rootScope.visibleModal = true ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Fayozzhon Berdiev, 2015-09-28
@Stopy

There are several solutions here
Working with angular, bootstrap modal windows, how to work with AJAX correctly?
The second is to take the already existing ones ( angular-bootstrap , angular-material )

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question