14. Router
• Responsible for
– Tracking application state
– Navigating between application states
• Integrates with history
• Uses fragment version of URL
• Use
– route() to define routes
– navigate(url) to navigate
15. View
• A Screen in the app
• Content can be
– HTML string
– Script template
• By default wraps content in a div element
• Can pass observable as model to view
16. Layout
• Inherits from View
• Allows rendering other views/layouts
• Will hide a view when new view is
rendered on a location