Main components of Backbone.js:
- Model – It performs various types of action on the data like validation, conversion, computed properties, access control.
- View – It specifies how your data looks like.
- Collection – It handles the loading and saving of new models to the server.
- Router – It is used for routing client-side applications and connecting them to actions and events.
- Event class object – It facilitates the objects to bind and trigger the custom events by using the desired name of our choice.