I am trying to display html by using angularjs sanitize module and ng-bind-html attribute on the element. It works fine if I have the attribute
on a div element.
But I need the same text…
I have issue in rendering image on UI, I have used ng-bind-html. I am getting the text as it is but image is not shwoing.
In angular-
$scope.conversation.message= $sce.trustAsHtml(response);
In HTML -
I have this code below. Which is a straight forward way of using NgOptions to plot some options in a form.
function NameCtrl($scope) {
$scope.theOptions = [{
'label': 'The Opt™',
'id': 3
}]
}