Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70434

Setting dynamically control absolute position

$
0
0

@sergiosmail wrote:

Hi guys
Surely I’m doing something right, but I hope you can help me with it. My source code looks like:
<img style="position: absolute; left: {{imageInfo.left}}px; top: {{imageInfo.top}}px;" [src]="imageInfo.strBase64Image">

Basically I was hoping that I can setup image absolute control X,Y position on view. But when I run inspector I see:

sanitizing unsafe style value position: absolute; left: 200px; top: 300px; (see http://g.co/ng/security#xss).v

Could you help me to understand what is wrong in my statement? Also it would be nice if you can recommend a good reading/article to understand how it works (in general) about supplying component variables to interface.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70434

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>