I've been working on a project in AngularJS that involves an object with key-value pairs displayed on the page. I need all keys to have a capitalized first letter, so I applied a filter. However, if the key is 'sku', then I require all letters to be capital as well.
Any suggestions on how to achieve this?
Thank you
HTML
<tr
class="product-characteristics"
ng-repeat="(prop, val) in $ctrl.product.additional_properties"
>
<td class="name">
{{prop | capitalize}}
</td>
<td>
<a ng-click="$ctrl.propertyClicked(prop, val)">{{val| titleCase}}</a>
</td>
</tr>