Thursday 15 March 2012

Aurelia - accessing shared ValueConverter from a view -


If I have a value converter 'XyzValueConverter' class from the 'xvc.js' file in the 'root' directory in 'toView' (value);

The answer is to import the converter like a custom element in the answer.

At the top of the View Template

  & lt; Template & gt; & Lt; Import = 'xvc' from & gt; & Lt; / Import & gt; ... & lt; P & gt; $ {SomeValue | | Xyz} & lt; / P & gt; ....  

No comments:

Post a Comment