github.com/hspak/nomad@v0.7.2-0.20180309000617-bc4ae22a39a5/ui/app/routes/allocations/allocation.js (about) 1 import Route from '@ember/routing/route'; 2 import WithModelErrorHandling from 'nomad-ui/mixins/with-model-error-handling'; 3 import { collect } from '@ember/object/computed'; 4 import { watchRecord } from 'nomad-ui/utils/properties/watch'; 5 import WithWatchers from 'nomad-ui/mixins/with-watchers'; 6 7 export default Route.extend(WithModelErrorHandling, WithWatchers, { 8 startWatchers(controller, model) { 9 controller.set('watcher', this.get('watch').perform(model)); 10 }, 11 12 watch: watchRecord('allocation'), 13 14 watchers: collect('watch'), 15 });