Skip to content

Instantly share code, notes, and snippets.

@Nijhazer
Created December 2, 2015 03:20
Show Gist options
  • Save Nijhazer/5965aa041c2d0eebe942 to your computer and use it in GitHub Desktop.
Save Nijhazer/5965aa041c2d0eebe942 to your computer and use it in GitHub Desktop.
Building Applications with TypeScript - Snippet 08
export class Task {
public name: string;
public active: boolean;
public render() : string {
if (this.active) {
return '[Inactive] ' + this.name;
}
return this.name;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment