Sha256: 1becadd90cc88508dfa5ad91a99118a7ae78ad3d92ef6463a1fd398f0b56d975
Contents?: true
Size: 778 Bytes
Versions: 207
Compression:
Stored size: 778 Bytes
Contents
(function () { /** * @ngdoc service * @name Bastion.components:TableCache * * @description * Used to save the table between states so that the search, etc. can be remembered * upon revisiting the state. **/ function TableCache($cacheFactory) { var cache = $cacheFactory('bst-table'); this.setTable = function (tableName, table) { cache.put(tableName, table); }; this.removeTable = function (tableName) { cache.remove(tableName); }; this.getTable = function (tableName) { return cache.get(tableName); }; } angular.module('Bastion.components').service('TableCache', TableCache); TableCache.$inject = ['$cacheFactory']; })();
Version data entries
207 entries across 207 versions & 2 rubygems