Javatpoint Logo
Javatpoint Logo

Backbone.js view.remove()

The Backbone.js remove method is used to remove the view from the DOM. It calls stopListening to remove any bound events that the view has listenTo.

Syntax:

Let's take an example.

See this example:

Test it Now

Output:

Save the above code in remove.html file and open this file in a new browser.

BackboneJS remove Model

After clicking, you will get the following result.

BackboneJS remove Model2




Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA