HTML:
<div class="cell-centered-text text-primary">
{{test.password | pwdFormat}}
</div>
JS:
angular.module('test-app').filter("pwdFormat",function(){
return function(value){
if(value){
return value.replace(/\s|\S/g,"•");
}
return value;
}
});