Created
March 25, 2016 16:33
-
-
Save davidrhyswhite/fa2582230037f7dd4675 to your computer and use it in GitHub Desktop.
This file contains 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
const privateMethods = { | |
privateMethod () { | |
console.log(this.say); | |
} | |
} | |
export default class Service { | |
constructor () { | |
this.say = "Hello"; | |
} | |
publicMethod () { | |
privateMethods.privateMethod.call(this); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment