source: trip-planner-front/node_modules/@fortawesome/angular-fontawesome/esm2015/stack/stack.component.js@ b738035

Last change on this file since b738035 was 59329aa, checked in by Ema <ema_spirova@…>, 3 years ago

adding photos

  • Property mode set to 100644
File size: 3.9 KB
Line 
1import { Component, ElementRef, Input, Renderer2 } from '@angular/core';
2export class FaStackComponent {
3 constructor(renderer, elementRef) {
4 this.renderer = renderer;
5 this.elementRef = elementRef;
6 }
7 ngOnInit() {
8 this.renderer.addClass(this.elementRef.nativeElement, 'fa-stack');
9 }
10 ngOnChanges(changes) {
11 if ('size' in changes) {
12 if (changes.size.currentValue != null) {
13 this.renderer.addClass(this.elementRef.nativeElement, `fa-${changes.size.currentValue}`);
14 }
15 if (changes.size.previousValue != null) {
16 this.renderer.removeClass(this.elementRef.nativeElement, `fa-${changes.size.previousValue}`);
17 }
18 }
19 }
20}
21FaStackComponent.decorators = [
22 { type: Component, args: [{
23 selector: 'fa-stack',
24 template: `<ng-content></ng-content>`
25 },] }
26];
27FaStackComponent.ctorParameters = () => [
28 { type: Renderer2 },
29 { type: ElementRef }
30];
31FaStackComponent.propDecorators = {
32 size: [{ type: Input }]
33};
34//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RhY2suY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2xpYi9zdGFjay9zdGFjay5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxVQUFVLEVBQUUsS0FBSyxFQUFxQixTQUFTLEVBQWlCLE1BQU0sZUFBZSxDQUFDO0FBTzFHLE1BQU0sT0FBTyxnQkFBZ0I7SUFTM0IsWUFBb0IsUUFBbUIsRUFBVSxVQUFzQjtRQUFuRCxhQUFRLEdBQVIsUUFBUSxDQUFXO1FBQVUsZUFBVSxHQUFWLFVBQVUsQ0FBWTtJQUFHLENBQ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