Answer the question
In order to leave comments, you need to log in
How to link Bootstrap and Backbone.js modals?
Good afternoon. Since I have very little experience with MVC JS frameworks, or rather not at all. Backbone just started to study - then I have a question.
I have a collection of models. There is a route 'addModel'. In it I call Bootstrap's modal window.
addModel: function(){
$('#addModel').modal();
}
Answer the question
In order to leave comments, you need to log in
In general, the router is not a place to manipulate the DOM tree, views should do this.
You can call the view method from the router, which will show this modal.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question