UNPKG

ng-request-cache

Version:

AngularJS HTTP request cache for IndexeDB and $cacheFactory

23 lines (18 loc) 438 B
(function() { 'use strict'; angular.module('toastr') .controller('ToastController', ToastController); function ToastController() { this.progressBar = null; this.startProgressBar = function(duration) { if (this.progressBar) { this.progressBar.start(duration); } }; this.stopProgressBar = function() { if (this.progressBar) { this.progressBar.stop(); } }; } }());