Hack hack hack...

An open journal-- some of it written for you, but most of it is for me.

Backbone.js Intro

Intro with Nick Gauthier

  • 7min 3seconds

  • Backbone is a library, not a framework

    • it is injectable, like Jquery
  • Ember is much larger and does more for you, but in backbone you call the shots

  • Router

    • Bind urls to actions with hashbang route or pushstate route
    • if you have a route that it recognizes it triggers your code
    • extend backbone default router
    • looks at a route and triggers an action -> like Rails
  • Views

    • When you instantiate a view, you create a new DOM element
      • The view’s job is to listen to events, like jQuery to trigger actions
Listens for a click…
  events: {
  "click .pet": "woof"
\\more code