Skip to content

Instantly share code, notes, and snippets.

@kivanio
Forked from fabiancarlos/rails4_angularjs.js
Created February 13, 2014 20:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kivanio/8983428 to your computer and use it in GitHub Desktop.
Save kivanio/8983428 to your computer and use it in GitHub Desktop.
var yourApp = angular.module('yourApp', []);
// fix 1
$(document).on('ready page:load', function(){
angular.bootstrap(document.body, ['yourApp']);
});
// or
// fix 2
$(document).on('ready page:load', function(){
angular.bootstrap(document, ['yourApp']);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment