I've got two Custom Elements. The first (wrap-elem
) is just a Wrapper around the second one (two-inputs
) and the second one contains two input elements and therefore got two values.
wrap-elem
has an attribute @published value
, which is bound to the second element via two-way-databinding.
<two-inputs value="{{value}}"/>
two-inputs
does have the two attributes @published startValue
and @published endValue
which are bound to input elements. And additionally I have a getter and a setter for value. set value(val)
and get value
. These two set the values of the attribute and return it as a single value (List).
My problem is, that the two-way-databinding in the first element wrap-elem
does not access the getter and setter of value. Making setter and getter @published did not work.
I also tried using an attribute @published value
in two-inputs
, and override setter and getter, but this just didnt work...
So is there a way to make this binding, with setter and getter work?