public
Last active

turbolinks + angularjs

  • Download Gist
gistfile1.coffee
CoffeeScript
1 2 3 4 5 6
bootstrapAngular = ->
$('[ng-app]').each ->
module = $(this).attr('ng-app')
angular.bootstrap(this, [module])
 
$(document).on('page:load', bootstrapAngular)

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.