I've this block in my html inside a modal called "MyModal"
<pre style="color: red;" class="help-text text-center" ng-if="!flag">{{ message }}</pre>
And this code in my component inside oninit and triggers when MyModal get closed
$('#MyModal').on('hidden.bs.modal', function (e) {
this.message ="\n";
this.flag = true;
console.log('this.flag',this.flag);
})
But after this the message is not getting hidden, can someone clarify please, thanks in advance