Unfortunately this feature has been deprecated for performance improvements. polymer 1.0+ only support the following:
- A property or subproperty path (users, address.street).
- A computed binding (_computeName(firstName, lastName, locale)).
- Any of the above, preceded by the negation operator (!).
here is an example for how you can achieve computed binding:
<dom-module ...>
<template>
<div class$="[[hasMobileStyle(mobile)]]"></div>
</template>
<script>
Polymer({
...
hasMobileStyle: function(mobile) {
return mobile ? 'mobile-styling' : '';
}
});
<script>
</dom-module>
you can also use the boolean as a selector to get rid of the computed binding:
<div class$="mobile-styling--[[mobile]]"></div>
and you'd do a selector on .mobile-styling--true
What you are asking for cannot be done. only the three conditions work, [[(mobile)?'mobile-styling':null]]
does not fit the criteria.