Skip to content

Instantly share code, notes, and snippets.

@phenomnomnominal
Created May 30, 2019 07:35
Show Gist options
  • Save phenomnomnominal/8dbb840d5bc3edc38af11f79b33dcf86 to your computer and use it in GitHub Desktop.
Save phenomnomnominal/8dbb840d5bc3edc38af11f79b33dcf86 to your computer and use it in GitHub Desktop.
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