Created
May 30, 2019 07:35
-
-
Save phenomnomnominal/8dbb840d5bc3edc38af11f79b33dcf86 to your computer and use it in GitHub Desktop.
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
import { Component, Input } from '@angular/core'; | |
import { Value, isBool, isNotNull } from '@trademe/ensure'; | |
@Component({ | |
selector: 'hello' | |
// ... | |
}) | |
export class HelloComponent { | |
private _primary: boolean; | |
public get primary (): boolean { | |
let val = this._primary; | |
return val; | |
} | |
public set primary (value: boolean) { | |
let val = value; | |
this._primary = val; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment