diff --git a/addon/components/paper-card-title-media.hbs b/addon/components/paper-card-title-media.hbs index ff4629985..bf78cde53 100644 --- a/addon/components/paper-card-title-media.hbs +++ b/addon/components/paper-card-title-media.hbs @@ -1,8 +1,9 @@ -{{! template-lint-disable no-implicit-this }} -{{#if (has-block)}} -
- {{yield}} -
-{{else}} - {{alt}} -{{/if}} \ No newline at end of file + + {{#if (has-block)}} +
+ {{yield}} +
+ {{else}} + {{@alt}} + {{/if}} +
\ No newline at end of file diff --git a/addon/components/paper-card-title-media.js b/addon/components/paper-card-title-media.js index 3f050efef..b1ed747d2 100644 --- a/addon/components/paper-card-title-media.js +++ b/addon/components/paper-card-title-media.js @@ -1,4 +1,4 @@ -/* eslint-disable ember/no-classic-components, ember/require-tagless-components */ +/* eslint-disable ember/no-classic-components */ /** * @module ember-paper */ @@ -8,7 +8,7 @@ import Component from '@ember/component'; * @class PaperCardTitleMedia * @extends Ember.Component */ -export default Component.extend({ - tagName: 'md-card-title-media', - size: 'md', -}); +export default class PaperCardTitleMedia extends Component { + tagName = ''; + size = 'md'; +}