Lets say I have a backbone view, lets name it view1
, which renders a template: template1
with a div having an id="first"
Now, in another view, lets name it view2
, I render another template: template2
where I again (by mistake) name a div with id="first"
Question - Will this cause an error if I don't render template1
and template2
together on the same page (I am using Marionette's show() function). In other words, do template 'divs' persist on the DOM?
Thanks for the answers!
It should not cause any issue. Simply template2 will replace template1 kind off.