import { Component, Input, OnChanges } from '@angular/core'; import { Lock } from './Lock'; @Component({ selector: 'LockableComponent', styles: [` .loader-wrap { position: relative; } .loader-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255, 255, 255, .6); opacity: 0; visibility: hidden; transition: all .2s; z-index: 100; } .loader-bg.visible { opacity: 1; visibility: visible; } `], template: `
` }) export class LockableComponent { @Input() lock: Lock = new Lock(); }