wonderfan / javascript

Explore the power of HTML,CSS and JavaScript
1 stars 0 forks source link

Angular and Backbone #14

Closed wonderfan closed 9 years ago

wonderfan commented 9 years ago

The entry point of Angular JS is the angular_init function. When the document is ready, this method will be performed.The following actions are to find the target elements and bootstrap the modules.

wonderfan commented 9 years ago

In the Backbone js framework, there are class type functions like model, collection, event, ajax and view. The start point is view definition because other components are used in the view class.

When you create one View instance from your view construct function, the initialize method will be called.This point can be hooked for the render function.

wonderfan commented 9 years ago

Moreover, you can also bind the event to element. when the event happens, the listener will call the view property function to change the target element.