src/app/loader/loading-more/loading-more.component.ts
selector | app-loading-more |
styleUrls | loading-more.component.css |
templateUrl | ./loading-more.component.html |
Methods |
constructor(materialService: MaterialService)
|
||||||
Parameters :
|
ngOnInit |
ngOnInit()
|
Returns :
void
|
import { Component, OnInit } from '@angular/core';
import { MaterialService } from '../../services';
@Component({
selector: 'app-loading-more',
templateUrl: './loading-more.component.html',
styleUrls: ['./loading-more.component.css']
})
export class LoadingMoreComponent implements OnInit {
constructor(private materialService: MaterialService) {}
ngOnInit() {
console.log('app-loading-more component loaded');
this.materialService.render();
}
}
<div class="loading-more-ctn">
<div class="mdl-spinner mdl-spinner--single-color mdl-js-spinner is-active"></div>
</div>