mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
jquery to angular
This commit is contained in:
parent
8076098361
commit
34fa298151
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue