I have a pipe that returns a css string depending on value coming form data json .
Main components
this.coords.push(new L.Marker([i.lat, i.lng], {
rotationAngle: i.heading,
rotationOrigin: 'bottom center',
icon: new L.DivIcon({
html: `<div style="width: 65px;";>
<img src="assets/icon/airplan.jpg" style="width: 20px;height: 25px;" ngClass='${i.heading}| heading'/>
</div>`
})
}).addTo(this.map)
The problem is when i run my project l get only same output of pipe name , l mean looks like pipe doesn't work ! Output
<img src="assets/icon/airplan.jpg" style="width: 20px;height: 25px;" ngclass="272|heading">
Any idea please