AngularJS: Uncaught Error: [$injector:modulerr] Failed to instantiate module?
Try using No Wrap – In Head or No wrap – in body in your fiddle: Working fiddle: http://jsfiddle.net/Q5hd6/ Explanation: Angular begins compiling the DOM when the DOM is fully loaded. You register your code to run onLoad (onload option in fiddle) => it’s too late to register your myApp module because angular begins compiling … Read more