Is it possible to load the angularjs controller late? like...
function doLateLoad(){ app.controller('ctrl', function ($scope) {}) }
doLateLoad();
I get ctrl is not found error for some reason. If I directly load it w/o including into a function, it works well.
app.controller(...). Please, provide stackoverflow.com/help/mcve that replicates the problem.