Created
May 25, 2016 19:42
-
-
Save joeSaad/1a34b4849cc29493598a9effd86bc6c6 to your computer and use it in GitHub Desktop.
Typescript method call from within constructor
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
export class Place { | |
currentUser : string; | |
siteUri: string; | |
config: string; | |
static Place.getConfig():string { | |
return "myID"; | |
}; | |
constructor(config: string){ | |
this.config = this.getConfig(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment