angular.module('app', []) .filter("myFilter", function() { return function(text) { return "(" + text + ")"; } }) .controller("MyCtrl", function($scope) { $scope.msg = "hello"; });
<html ng-app="app" ng-controller="MyCtrl"> <label>{{msg | myFilter}}</label> </html>