Last active
April 8, 2016 18:24
-
-
Save mattmcmanus/d23d9bc3167cfb5297ef0b293d4b0704 to your computer and use it in GitHub Desktop.
Using ember-derred-content with ember-in-viewport
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
const { | |
get, | |
computed | |
} = Ember; | |
import InViewportMixin from 'ember-in-viewport'; | |
export default Ember.Component.extend( | |
InViewportMixin, | |
{ | |
classNames: ['panel'], | |
stats: computed('groupMembership', function() { | |
return get(this, 'groupMembership').tallyupStats(); // Using ember-api-actions (https://github.com/mike-north/ember-api-actions) | |
}) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment