Value cycle as prop
Atomico has a really efficient and simple type validation method, the type validation works in the following way:
Last updated
Atomico has a really efficient and simple type validation method, the type validation works in the following way:
Last updated
the given value is transformed to the corresponding type, be it String, Number, Boolean, Array or Object, once transformed it is sent to the cycle as property.
evaluates if the value is of the declared type:
If it corresponds to the type:
It is saved in props.
An event is emitted (if this has been configured in the prop).
It is reflected as an attribute (if this has been configured in the prop).
It is sent to the update queue and subsequent rendering.
It does not correspond to the type: an error is created by console with the following data:
target: Instance of the webcomponent.
value: Input value.
type: expected type.