Skip to content

Instantly share code, notes, and snippets.

@joeSaad
Created May 25, 2016 19:42
Show Gist options
  • Save joeSaad/1a34b4849cc29493598a9effd86bc6c6 to your computer and use it in GitHub Desktop.
Save joeSaad/1a34b4849cc29493598a9effd86bc6c6 to your computer and use it in GitHub Desktop.
Typescript method call from within constructor
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