Is there a way to assign a function's value to an HTML attribute?
For example, setting the attribute value to the value returned by the function foo.
foo () : string
{ return "bar";
}
I attempted the following without any success.
<input type="button" value="{{foo ()}}"/>
<input type="button" [value]="foo ()"/>
<input type="button" value="foo ()"/>