I came across this answer on Stack Overflow regarding checking for a value in Knockout, but it seems to be outdated. I am attempting to achieve something like this:
<li>
<span data-bind="text: Subject"></span>
<!-- ko if: Subject.contains('Important') -->
<i class="fa fa-exclamation-triangle"></i>
<!-- /ko -->
</li>
In this scenario, I want the fontawesome icon to be displayed next to the Subject text if it contains the word 'Important'. Unfortunately, using 'contains' as a function does not work, and I am having trouble finding an updated solution.