File

src/app/loader/loader.component.ts

Implements

OnInit

Metadata

selector app-loader
styleUrls loader.component.css
templateUrl ./loader.component.html

Index

Methods
Inputs

Constructor

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

Inputs

cssclass

Default value: ''

header

Default value: 'Retrieving Data'

message

Default value: 'Please wait a moment while we retrieve your information.'

Methods

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

@Component({
  selector: 'app-loader',
  templateUrl: './loader.component.html',
  styleUrls: ['./loader.component.css']
})
export class LoaderComponent implements OnInit {
  @Input()
  header = 'Retrieving Data';
  @Input()
  message = 'Please wait a moment while we retrieve your information.';
  @Input()
  cssclass = '';
  constructor(private materialService: MaterialService) {}

  ngOnInit() {
    console.log('app-loader component loaded');
    this.materialService.render();
  }
}
<div id="loadingData" class="empty-page-ctn loading-ctn {{cssclass}}">

  <div class="loading-more-ctn">
    <div class="mdl-spinner mdl-spinner--single-color mdl-js-spinner is-active"></div>
  </div>

  <h3 class="status-header status-normal">{{header}}</h3>

  <div class="page-description">
    <p class="para-medium">{{message}}</p>
  </div>

</div>
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""