Hello,
I need to create a simple custom widget with Angular Js.
I define the app controller inside the controller
app.filter('startFrom', function() {
return function(input, start) {
start = +start;
return input.slice(start);
}
})
to
var startFrom= $filter('filter');
startFrom([], function(input, start) {
if (input) {
start = +start;
return input.slice(start);
}
return [];
}
);
However, it seems not working.
The template code is