In this simplified scenario, I have two files: index.htm, lazy.htm.
index.htm:
var myApp = angular.module(\'myApp\', []); myApp.controller(\'embed\',
Try this ARI plugin for Angular JS. It helps you to lazy load the controller scripts on demand.