Answer the question
In order to leave comments, you need to log in
How to duplicate rendered view in backbonejs?
In general, there is a pagination view, I point it there
$('.pagination-block').html(app.Global.paginationView.$el)
<div class="pagination-block">
<!--pagination there-->
</div>
Answer the question
In order to leave comments, you need to log in
One view cannot handle two different elements.
If you only need html (which is unlikely), then you can use $el.html()
instead $el
in your code.
If you need a full-fledged view with handlers, etc., then you just need to create two separate views, render them separately and add them to the DOM separately.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question