How to use $scope.trustedHtml

Sneha39
Mega Guru

I am passing table record in html tab in portal but its not showing color so i want to use $scope.trustedHtml but its not working

 

<HTML>

<div class="mn-container" id='cab-mn-container'>
<div id="cab-mn-editor" ng-if="meetingNotes.canEdit()">
<textarea id="cab-mn-editor-textarea" ui-tinymce="meetingNotes.editor.config" ng-model="meetingNotes.workingCopy"></textarea>
</div>
<div id="cab-mn-readonly" class="mn-static-notes" ng-if="!meetingNotes.canEdit()" ng-bind-html="meeting.record.meeting_record.display_value" tabindex="0" focus-this="true"></div>
</div>

<CONTROLLER>

$scope.html = 'meeting.record.meeting_record.display_value';
$scope.trustedHtml = $sce.trustAsHtml($scope.html);

3 REPLIES 3

Mahesh23
Mega Sage

Hi,

Please refer below thread might be helpful to you

https://stackoverflow.com/questions/18340872/how-do-you-use-sce-trustashtmlstring-to-replicate-ng-bi...

 

Please mark my response as correct answer or helpful if applicable 

Not working

Sneha39
Mega Guru

@Filipe Cruz  do you have any solution on this ?