I'm new to Onsen UI and currently using version 2.0.0-rc.15. What is the correct way to remove an Onsen UI component (e.g. <ons-progress-bar>
, <ons-button>
) from the DOM using vanilla JavaScript (or jQuery)? Do we remove it like how we remove a HTML element?
Asked
Active
Viewed 173 times
0

icaru12
- 1,522
- 16
- 21
-
Yes. Now I assume that you are referring to individual elements but not templates or pages as those have methods available such as `popPage()`, etc. – Munsterlander Aug 03 '16 at 03:41
-
Thanks @Munsterlander. I want to remove a
, I was wondering whether `$('#theOnsProgressBarId').remove();` is sufficient. – icaru12 Aug 03 '16 at 04:07