Skip to content

Instantly share code, notes, and snippets.

@jepetko
Created March 21, 2016 19:16
Show Gist options
  • Save jepetko/e2f2d76e0cc39d9e959b to your computer and use it in GitHub Desktop.
Save jepetko/e2f2d76e0cc39d9e959b to your computer and use it in GitHub Desktop.
Tab model
export class Tab {
private _active: boolean;
constructor(private _id: number = -1, public title?: String, public content?: String) {
}
set active(active: boolean) {
this._active = active;
}
get active() {
return this._active;
}
get id() {
return this._id;
}
set id(id: number) {
this._id = id;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment