I have this data in my controller
data
$scope.data = { home: { baseValue: \"1\", name: \"home\" }, co
I solved with this solution:
$scope.updateFields= function(){ angular.forEach($scope.fields,function (value, key) { value.title = value.title.toLowerCase().replace(/\s+/g,''); }) }; $scope.$watch('fields', $scope.updateFields, true);