Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var MDCList = require('material-components-web').list.MDCList;
var MDCMenu = require('material-components-web').menu.MDCMenu;
module.exports = {
template: require('./polling-button.component.html'),
bindings: {
drawer: '<'
},
controller: PollingButtonController
};
PollingButtonController.$inject = ['$element', '$timeout', 'PollingService'];
function PollingButtonController($element, $timeout, PollingService) {
var pollingMenu;
var pollingList;
this.pollingIntervals = ['5000', '30000', '120000', '300000'];
this.pollingInterval = PollingService.getPollingInterval();