You could keep this in the view layer by either using a filter or by using `ng-if` or `ng-show`.