<div class="loader-wrapper ">
<div class="loader is-loading"></div>
</div>
I want to to increase the size of the loader without added anything in CSS!
<div class="loader-wrapper ">
<div class="loader is-loading"></div>
</div>
I want to to increase the size of the loader without added anything in CSS!
in component
import {
Component,
OnInit,
ViewChild,
ElementRef,
ViewEncapsulation
} from '@angular/core';
@Component({
selector: 'app-loading',
template: `
<div #loaderWrapper class="loader-wrapper ">
<div class="loader is-loading"></div>
</div>
`,
encapsulation: ViewEncapsulation.None
})
export class CustomComponent implements OnInit {
@ViewChild('loaderWrapper') loaderWrapper: ElementRef;
ngOnInit() {
this.loaderWrapper.nativeElement.style.with = 500;
this.loaderWrapper.nativeElement.style.height = 500;
}
}