import Component from '@ember/component';
import { computed } from '@ember/object';
import { alias } from '@ember/object/computed';
import layout from '../templates/components/md-card-content';

export default Component.extend({
  layout,

  classNames: ['card-content'],

  classNameBindings: ['class'],
  title: alias('parentView.title'),
  titleClass: alias('parentView.titleClass'),
  activator: alias('parentView.activator'),

  cardTitleClass: computed('titleClass', function() {
    return this.get('titleClass') || 'black-text';
  })
});

import Component from '@ember/component';
import { computed } from '@ember/object';
import layout from '../templates/components/md-card-content';

export default Component.extend({
  layout,

  classNames: ['card-content'],

  classNameBindings: ['class'],

  title: computed(function() {
    return this.get('parentView.title');
  }).volatile(),

  titleClass: computed(function() {
    return this.get('parentView.titleClass');
  }).volatile(),

  activator: computed(function() {
    return this.get('parentView.activator');
  }),

  cardTitleClass: computed('titleClass', function() {
    return this.get('titleClass') || 'black-text';
  })
});

Update code to comply with Ember 2.8.0.
Update code to comply with Ember 2.8.0.

Check discussion in https://github.com/emberjs/ember.js/issues/14266
