Is it possible to use the define plugin to define toString
methods on properties? Like pythons __repr__
method on a class. For example:
myMap.attr('myProper') //returns 'an_identifier'
but using myMap.myProper in a stache template might return a more readable 'An Identifier'
toString
or whatever its called. Does a stache template call the serialize
method on the property?
serialize
is for. But is it possible to get the serialize
d value of a property from a stache template?
<my-foo {^.}="*foo" />
<my-bar (some-event)="*foo.someMethod()" />