AppController eslinted
This commit is contained in:
1 parent
ca23ccc75f
commit
e3b95a68e6
1 file changed
+15
-15
@@ -1,19 +1,19 @@
|
||||
import {footer, mobileMatchSelector, contacts} from '../config';
|
||||
import {footer, mobileMatchSelector, contacts} from '../config'
|
||||
|
||||
export default function (app) {
|
||||
app.controller('AppController', ($scope, menu) => {
|
||||
try {
|
||||
if (window.matchMedia(mobileMatchSelector).matches) {
|
||||
$scope.navigation = 'navigation';
|
||||
}else{
|
||||
$scope.navigation = 'main-menu';
|
||||
}
|
||||
} catch (e) {
|
||||
$scope.navigation = 'main-menu';
|
||||
}
|
||||
app.controller('AppController', ($scope, menu) => {
|
||||
try {
|
||||
if (window.matchMedia(mobileMatchSelector).matches) {
|
||||
$scope.navigation = 'navigation'
|
||||
} else {
|
||||
$scope.navigation = 'main-menu'
|
||||
}
|
||||
} catch (e) {
|
||||
$scope.navigation = 'main-menu'
|
||||
}
|
||||
|
||||
$scope.phone = contacts.telephone;
|
||||
$scope.menuProvider = menu.items;
|
||||
$scope.footer = footer;
|
||||
});
|
||||
$scope.phone = contacts.telephone
|
||||
$scope.menuProvider = menu.items
|
||||
$scope.footer = footer
|
||||
})
|
||||
};
|
||||
Reference in new issue
Block a user