Skip to content
Snippets Groups Projects
Commit caf366fd authored by jojohoch's avatar jojohoch
Browse files

Add width to image element

parent e1057745
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,9 @@ import { ElementComponent } from '../element-component.directive';
@Component({
selector: 'app-image',
template: `
<img src="{{elementModel.src}}" alt="Image Placeholder">
<img src="{{elementModel.src}}"
alt="Image Placeholder"
[style.width.%]="100">
`
})
export class ImageComponent extends ElementComponent {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment