Load and Action for Data Processing

Load and Action for Data Processing

@Load decorator provides easy way to load asynchronous data. It reports exceptions and cancels previous operation and provides a cancelToken which can be used to check if cancellation was requested.

Load decorator can also watch for changes in any referenced expression, making it very easy to observe and load data when a change occurs.

Load decorator automatically takes care of debouncing (cancelling previous request).

'@Action' decorator can be applied on a method which will automatically display an alert if there was any error. And it will invoke validation before executing the method. Display an success alert after completion if configured. You can also configure 'confirm' to request confirmation (e.g. for delete operations).