Collection.bind('change',this.function, this);
Collection.bind('add',this.function, this);
Collection.bind('remove',this.function, this);
Collection.bind('reset',this.function, this);
I know these four, but what are the rest?
What about model binds? What are the events for those?
How come I can't find a documentation specifying all the binds....
Backbone. js trigger Event is used to invoke or callback the function for the given event or a space-delimited list of events. The subsequent arguments will be passed along to the event callbacks in order to trigger it.
Backbone. js allows developers to develop one page applications and front-end much easier and better using JavaScript functions. Backbone provides different types of building blocks like models, views, events, routers and collections for assembling client side web applications.
BackboneJS is a lightweight JavaScript library that allows to develop and structure the client side applications that run in a web browser. It offers MVC framework which abstracts data into models, DOM into views and bind these two using events.
It is a bit hidden in the FAQ.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With