Skip to content

Instantly share code, notes, and snippets.

@cray0000
Created May 13, 2015 17:46
Show Gist options
  • Save cray0000/53774f2bcb13b429f8df to your computer and use it in GitHub Desktop.
Save cray0000/53774f2bcb13b429f8df to your computer and use it in GitHub Desktop.
Derby.js Component primitives
module.exports = class ComponentBase
init: ->
@root = @page.root
@model.ref 'root', @root.model
module.exports = class ComponentPage
init: ->
@page.root = this
# And some way to have _page to be the local model of the "page component"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment