Trying to move a simple dashboard 1.0 template node to dashboard 2.0
My code from dashboard 1, The color of the heart is sent from the microcontroller, to give the dashboard a heart beat from the microcontroller.
<p>
<center>
<font color="{{msg.payload}}"><b> ♥ </b></font>
</center>
</p>
Dashboard 2.0 code; I have tried every format to get msg.payload to set color.
<template>
<div>
<h2>Heat Beat</h2>
<p class="my-class">♥</p>
</div>
</template>
<style>
.my-class {
color:{{msg.payload}};
}
</style>
If I hard code color works no problem.
I know this is simple... but the format on how to access the msg. I have not been able to find.
Any Help would be greatly appreciated, also training resources to better understand the template node and access to the msg.