Created
March 21, 2016 19:16
-
-
Save jepetko/e2f2d76e0cc39d9e959b to your computer and use it in GitHub Desktop.
Tab model
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 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