display.component.ts 435 B

12345678910111213141516171819202122
  1. import { Component, Input, OnInit } from '@angular/core';
  2. import { ILink } from '../../../models/field.model';
  3. @Component({
  4. selector: 'app-display',
  5. templateUrl: './display.component.html',
  6. styleUrls: ['./display.component.scss']
  7. })
  8. export class DisplayComponent implements OnInit {
  9. @Input()
  10. meta: StringMap<any>;
  11. value: string;
  12. link?: ILink;
  13. ngOnInit() {
  14. this.value = this.meta.value;
  15. this.link = this.meta.link;
  16. }
  17. }