Hello everyone (please be nice this is my first time and I am very much a noob)
The problem I have seems like it must have an obvious answer, but I'm stumped.
I'm using a template node to write html which will change according to the msg.payload:-
<!Doctype Html>
<Html>
<Head>
<style>
.rotate{{payload}} {
-webkit-transform:rotate({{payload}}deg);
-moz-transform: rotate({{payload}}deg);
-ms-transform: rotate({{payload}}deg);
-o-transform: rotate({{payload}}deg);
transform: rotate({{payload}}deg);
}
</style>
</Head>
<Body>
<img src="http://hailshamhistoricalsociety.co.uk/images/Museum-entrance.png" width="100" height="100" class="rotate{{payload}}">
</Body>
</Html>
This is then sent to a ui template with default text (<div ng-bind-html="msg.payload"></div>)
The problem is that although the image shows up in the dashboard it doesn't rotate, but if I paste the output (captured by a default node) directly into the ui template it works fine!
Could anyone tell me what is happening?
Any help very gratefully recieved.
Kind regards
Paul