您应该$ compile动态添加角度内容。就像是:
jQuery(document.body).append( $compile( '<div ng-controller="ChatBoxControl"><div ng-repeat="line in chat"><span>{{line}}</span></div></div>' )(scope));您可以使用以下任何元素的范围:
var scope = angular.element('#dynamicContent').scope();另外,您还应该获得可以在其他控制器中注入的$ compile。



