Skip to content

lifecycle

pierr edited this page Nov 20, 2014 · 3 revisions

1.The route is parsed and is handled by the good router

  • The route is http://localhost/#contact/1
  • The associated route is http://localhost/#contact/:id
  • The handler contactDetailRoute is matched

2.The router creates the the model

  • The model contactDetail is created
  • It is instanciated with a ctcId value as new ContactDetail({ctcId: id})

3.The router creates the the view

  • The view is created and associated with the model
  • new ContactDetailView({model: contactDetail})

4.The view is injected into one of the application layout

  • The view is rendered into an application layout
Clone this wiki locally