@anglr/rest
Version:
Angular module representing rest services
17 lines • 652 B
JavaScript
import { isPresent } from '@jscrpt/common';
import { ProgressIndicatorGroupMiddleware } from '../middlewares';
/**
* Allows to specify progress indicator group for displaying local progress indicator
* @param name - Name of progress indicator group to be displayed
*/
export function ProgressIndicatorGroup(name) {
return function (_target, _propertyKey, descriptor) {
const descr = descriptor;
if (isPresent(name)) {
descr.middlewareTypes.push(ProgressIndicatorGroupMiddleware);
descr.groupName = name;
}
return descr;
};
}
//# sourceMappingURL=progressIndicatorGroup.decorator.js.map