UNPKG

ember-ghost-casper-template

Version:
16 lines (14 loc) 468 B
import Component from '@ember/component'; import { inject as service } from '@ember/service'; import { htmlSafe } from '@ember/string'; import { computed } from '@ember/object'; import { url } from 'ember-ghost-casper-template/helpers/url' export default Component.extend({ blog: service(), router: service(), url: service(), tagName: '', postStyle: computed('', function() { return htmlSafe(`background-image: url(${url([this.post.image])})`); }) })