This is not working:
<div [style.-moz-column-count]="columns"></div>
<div [ngStyle]="{'-moz-column-count': columns}"></div>
<div style="-moz-column-count: {{columns}}"></div>
Is there any workaround to avoid Sanitizer? I found a Pipe to bypass the value, but not the property name.
import {DomSanitizationService} from '@angular/platform-browser';
@Pipe({name: 'safe'})
export class SafePipe {
constructor(sanitizer:DomSanitizationService){
this.sanitizer = sanitizer;
}
transform(style) {
return this.sanitizer.bypassSecurityTrustStyle(style);
}
}
Any ideas to use this property?