Is there a way to display a "Loading Message" prior to the filtered data being returned when using AngularJS for filtering? The filter process is quick, so displaying the message before returning the filtered data is not feasible. Here is an example of the code:
.filter('filterName', function () {
return function (packages, scope) {
var filtered = [];
packages.forEach(function (package) {
if (condition)
filtered.push(package);
});
return filtered;
}
})
Anyone have suggestions on how to implement a message or div element that appears before the data is returned?