Last active
August 29, 2015 14:22
-
-
Save dferber90/6afdc3eff242a69151ba to your computer and use it in GitHub Desktop.
arrows in es6
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
// ES6 | |
Template.stats.onCreated(function () { | |
this.autorun(() => { | |
const filter = { limit: Session.get('options.limit') }; | |
this.subscribe('tweets', filter); // same "this" as in line 3 | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment