Ghost/ghost/admin/app/components/gh-mobile-nav-bar.js
Kevin Ansfield 267ce40945 Refactor general UI state into a service
no issue
- moves general UI state control such as menu display, autonav, settings menu, etc into a `ui` service for easier use within components
- no longer required to jump through hoops passing state and actions down from application controller into components
- removes indirect "route" actions in favour of calling actions/methods directly on the `ui` service
2017-08-15 16:01:12 +01:00

10 lines
220 B
JavaScript

import Component from 'ember-component';
import {inject as injectService} from '@ember/service';
export default Component.extend({
ui: injectService(),
tagName: 'nav',
classNames: ['gh-mobile-nav-bar']
});