Mercurial > hg > ugly-duckling
view src/app/progress-spinner/progress-spinner.component.ts @ 162:fab88270bccc
Multi-channel spectrogram
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Wed, 22 Mar 2017 08:18:46 +0000 |
parents | c02c76b94148 |
children | 7224d9f990cf |
line wrap: on
line source
/** * Created by lucast on 14/03/2017. */ import {Component, Input} from "@angular/core"; @Component({ selector: 'ugly-progress-spinner', template: ` <div class="container" [hidden]="!isVisible"> <md-spinner class="spinner" color="primary" ></md-spinner> </div> `, styles: [` .container { height: 40px; width: 40px; position: absolute; top: calc(100% - 40px); left: calc(100% - 40px); } .spinner { width: 100%; height: 100%; } `] }) export class ProgressSpinnerComponent { @Input() isVisible: boolean = true; }