SyntaxFix
Write A Post
Hire A Developer
Questions
Found in a google discussion group. Works for me.
var $injector = angular.injector(['ng', 'myApp']); $injector.invoke(function($rootScope, $compile) { $compile(element)($rootScope); });