css class same name as prop

This commit is contained in:
Bruno Windels 2019-06-14 23:46:47 +02:00
parent bec7720c42
commit ad92356b40

View file

@ -4,7 +4,7 @@ export default class GapView extends TemplateView {
render(t, vm) { render(t, vm) {
const className = { const className = {
gap: true, gap: true,
loading: vm => vm.isLoading isLoading: vm => vm.isLoading
}; };
const label = (vm.isUp ? "🠝" : "🠟") + " fill gap"; //no binding const label = (vm.isUp ? "🠝" : "🠟") + " fill gap"; //no binding
return t.li({className}, [ return t.li({className}, [