In development!
Interpolation
Text interpolation
Interpolation - is one of the ways how to bind data with tempalte
We use 'Mustache' syntax, which means value from double curly braces will be replaced with the value from props.title
import { Component } from 'ace-js';
import Tpl from './example.component.html';
export class ExampleComponent extends Component {
constructor(params) {
super(params, {
template: Tpl,
props: ()=> {
return {
title: 'Some title'
}
}
});
}
}
will be replaced with props.title value
Javascript expressions
<span>{{isReady ? 'OK' : 'FAIL'}}</span>
This expression will be calculated as ussual js expression
The alturnative way is using of ac-value