Created
January 13, 2019 23:50
-
-
Save ZackDeRose/5612bea6731af9d094467fa64c6b80ef to your computer and use it in GitHub Desktop.
foo.ts
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
export class Foo { | |
private static _count = 0; | |
id: number; | |
constructor() { | |
this.id = ++Foo._count; // starts with 1 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment