Related questions
Angular: conditional class with *ngClass
What is wrong with my Angular code? I am getting:
Cannot read property 'remove' of undefined at BrowserDomAdapter.removeClass ...
HTML
<ol class="breadcrumb">
<li *ngClass="{active: step==='step1'}" (click)="step='step1; '">Step1</li&…
How to add background-image using ngStyle (angular2)?
How to use ngStyle to add background-image?
My code doesn't work:
this.photo = 'http://dl27.fotosklad.org.ua/20121020/6d0d7b1596285466e8bb06114a88c903.jpg';
<div [ngStyle]="{'background-image': url(' + photo + ')}"></div>
Generate dynamic css based on variables angular
I am working on a admin panel developed with angular 4 and trying to integrate a sections to customize styling like change color, bg etc.
I already have developed a sections to save settings in database got them on app load …