Home » Backbone.js view.el()

Backbone.js view.el()

by Online Tutorials Library

Backbone.js view.el()

The Backbone.js View el method defines the element that is used as the view reference. this.el is created from the view’s tagName, className, id and attributes properties, if specified. If not, el is an empty div.

Syntax:

Let’s take an example.

See this example:

You may also like