I tried to use this simple filter :
App.filter('MyCutFilter', function ()
{
return function(input)
{
return input.replace(/^.*[\\\/]/, '');
};
})
On a element of ng-repeat like this :
<tr ng-repeat="jf in ctrl.Files" class="tablerow">
<td><span ng-bind="jf.id"></span></td>
<td><span class="filename" ng-bind="jf.FileName | MyCutFilter"></span></td>
But i got the following error :
Error: [$injector:unpr] Unknown provider: CutFilterProvider <- CutFilter <- UpFileController
What can i do to correct it ?
Thanks for your help in adavance.