-
Notifications
You must be signed in to change notification settings - Fork 0
Custom Filter function
Ilya edited this page Jan 18, 2017
·
1 revision
I want to add your filter values
let data = {
one : 'ONE STRING',
two : 'two string'
}
// html
<div id="test">
<div>{{ one | toLowerCase}}</div>
<div>{{ two }}</div>
</div>
Aromatic.registerFilter('toLowerCase', function(test) {
return test.test.toLowerCase();
});
// after compile
<div id="test">
<div>one string</div>
<div>two string</div>
</div>