$compile is not defined. I don't know enough to post a plunker to get started.
I don't see sample code for accessing angular code from out side of the controller or directive.if I get the DOM by $(#myElement), I imagine I would start by calling app..... what exactly do I call to run it thru the compiler? How do I get hold of $compiler?
--
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/uIMDvSPSmIM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.
var $injector = angular.injector(['ng', 'myApp']);
$injector.invoke(function($rootScope, $compile) {
$compile(element)($rootScope);
});
var $injector = angular.injector(['ng', 'TradingSystem']);
$injector.invoke(function ($rootScope, $compile) {
$compile($('#pageWrapper')[0])($rootScope);
$rootScope.$digest();
});