import { property } from "https://deno.land/x/pouch@v0.0.8/deps.ts";
The decorator property
takes an optional object as argument with four
optional properties:
- Setting
reflect
tofalse
would stop the element's attribute from synchronising. - Stop rerendering on property change by setting
render
tofalse
. - Wait for property assignment before rendering with the option
wait
. - Check with
assert
if the input has a truthy value. Otherwise throw error. It also adds an array containing the names of the attributes you want to observe with the native lifecycle callbackattributeChangedCallback
.