jquery to angular

This commit is contained in:
Lee moon soo 2015-04-10 07:24:33 +09:00
parent 8076098361
commit 34fa298151

View file

@ -81,11 +81,11 @@ angular.module('zeppelinWebApp')
$scope.renderAngular = function() {
var retryRenderer = function() {
if ($('#p'+$scope.paragraph.id+'_angular').length) {
if (angular.element('#p'+$scope.paragraph.id+'_angular').length) {
try {
$('#p'+$scope.paragraph.id+'_angular').html($scope.paragraph.result.msg);
angular.element('#p'+$scope.paragraph.id+'_angular').html($scope.paragraph.result.msg);
$compile($('#p'+$scope.paragraph.id+'_angular').contents())($rootScope.compiledScope);
$compile(angular.element('#p'+$scope.paragraph.id+'_angular').contents())($rootScope.compiledScope);
} catch(err) {
console.log('ANGULAR rendering error %o', err);
}