File

src/app/components/loader/loading-more/loading-more.component.ts

Implements

OnInit

Metadata

Index

Methods

Constructor

constructor(materialService: MaterialService)
Parameters :
Name Type Optional
materialService MaterialService No

Methods

ngOnInit
ngOnInit()
Returns : void
import { Component, OnInit } from '@angular/core';
import { MaterialService } from '../../../providers';

@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>

./loading-more.component.css

.loading-more-ctn {
    width: 30px;
    margin: 15px auto 10px auto;
}
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""