Is there a way to call an outside javascript function inside angularJS brackets, without having to use signals?
For example:
HTML
<td data-title="'PHONE'"> {{ formatPhone(p.phone) }} </td>
JAVASCRIPT
var app = angular.module('myapp', [ 'ngTable' ]);
//my controller
app.controller('MyController', function($scope, $http, NgTableParams) {
//...
});
//my outside function
var formatPhone = function(p) {
//...
};