Skip to content

Instantly share code, notes, and snippets.

@hersonls
Last active October 11, 2017 14:07
Show Gist options
  • Save hersonls/0e8f87bd2366958c81aa7d7495b7ef5c to your computer and use it in GitHub Desktop.
Save hersonls/0e8f87bd2366958c81aa7d7495b7ef5c to your computer and use it in GitHub Desktop.
Angular 4.4.3
import { Component, HostBinding } from '@angular/core';
import { LoadingService } from './loading.service';
var LoadingComponent = /** @class */ (function () {
function LoadingComponent(loadingService) {
var _this = this;
this.loadingService = loadingService;
this.elementClass = false;
this.loadingService.isVisible.subscribe(function (isVisible) {
_this.elementClass = isVisible;
});
}
LoadingComponent.decorators = [
{ type: Component, args: [{
selector: 'app-loading',
template: require('./loading.component.html'),
styles: [require('./loading.component.css')]
},] },
];
/** @nocollapse */
LoadingComponent.ctorParameters = function () { return [
{ type: LoadingService, },
]; };
LoadingComponent.propDecorators = {
'elementClass': [{ type: HostBinding, args: ['class.visible',] },],
};
return LoadingComponent;
}());
export { LoadingComponent };
//# sourceMappingURL=loading.component.js.map
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment