Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
image.component.ts 405 B
import { Component } from '@angular/core';
import { ImageElement } from '../unit';
import { ElementComponent } from '../element-component.directive';

@Component({
  selector: 'app-image',
  template: `
      <img src="{{elementModel.src}}"
           alt="Image Placeholder"
           [style.width.%]="100">
  `
})
export class ImageComponent extends ElementComponent {
  elementModel!: ImageElement;
}