ES2016 => instead of function()

Posted 3 years ago by EmilMoe

I'm trying to figure out how this "=>" works. I think I have copied off Jeffreys example, but gulp/browserify fails. So I must be blind?

    this.$http.get('projects/1/accounts').then(
            response => console.log('Done!');
    );

This is a screenshot from a screencast where Jeffrey does this: http://cloudho.st/i/5pDecI4F.png

Please sign in or create an account to participate in this conversation.