Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var MDCMenuSurface = require('material-components-web').menuSurface.MDCMenuSurface;
module.exports = {
template: require('./preferences-button.component.html'),
bindings: {
drawer: '<'
},
controller: PreferencesButtonController
};
PreferencesButtonController.$inject = ['$element', 'LocalStorageService'];
function PreferencesButtonController($element, LocalStorageService) {
this.preferences = {
timeZone: LocalStorageService.getTimeZoneView(),
timeFormat: LocalStorageService.getTimeFormat(),
var MDCMenuSurface = require('material-components-web').menuSurface.MDCMenuSurface;
module.exports = {
template: require('./navbar.component.html'),
bindings: {
myself: '<'
},
controller: NavbarController
};
NavbarController.$inject = ['$element', '$location', 'UserService'];
function NavbarController($element, $location, UserService) {
var pollingMenu;
this.location = $location;
this.$postLink = function() {