Open
Description
Let's assume we have a getter:
windowHeightStore: number = 0;
get windowHeight() {
if (this.windowHeightStore === 0) {
this.windowHeightStore = document.documentElement.clientHeight;
}
return this.windowHeightStore;
}
It would be nice to have a decorator:
@defaultValue(() => document.documentElement.clientHeight)
windowHeight: number;