Skip to content

Instantly share code, notes, and snippets.

@cloke
Created December 20, 2011 21:11
Show Gist options
  • Select an option

  • Save cloke/1503292 to your computer and use it in GitHub Desktop.

Select an option

Save cloke/1503292 to your computer and use it in GitHub Desktop.
Ember didInsertElement example
App.MasterView = Em.View.create
templateName: 'app/~templates/master_page'
SidebarView: Em.View.extend
viewName: 'Sidebar'
templateName: 'app/~templates/sidebar'
contentBinding: 'App.MyController.content'
didInsertElement: ->
#setup draggable, sortable, blahbable here
@joewest

joewest commented Dec 20, 2011

Copy link
Copy Markdown
  didInsertElement: function() {
    // do stuff
  },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment