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 and the view

  • The model contactDetail is created and instanciated with a ctcId value as new ContactDetail({ctcId: id})
  • The view is created and associated with the modelnew ContactDetailView({model: contactDetail})
  • The view is rendered into an application layout
Clone this wiki locally