Skip to content

Instantly share code, notes, and snippets.

@krivaten
Last active September 12, 2016 21:31
Show Gist options
  • Select an option

  • Save krivaten/49e9686ebf98224169e396ac22bcf07b to your computer and use it in GitHub Desktop.

Select an option

Save krivaten/49e9686ebf98224169e396ac22bcf07b to your computer and use it in GitHub Desktop.
import Em from 'ember';
const {
computed
} = Em;
export default. Em.Component.extend({
datum: null,
pfmData: computed.readOnly('datum.pfmData'),
actions: {
something() {
const pfmData = get(this, 'pfmData');
const feedName = pfmData ? get(pfmData, 'feed_name') : null;
}
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment