Attempting to assign a value in an Ionic 3 template from the ts file while also adding css properties but encountered an issue.
PROBLEM
Error: Uncaught (in promise): Error: No value accessor for form control with name: 'image' Error: No value accessor for form control with name: 'image'
Code snippet below:
HTML
<img name="image" [(ngModel)]="image" id="image" src="https://openclipart.org/image/2400px/svg_to_png/247149/dual-compass-rose.png" alt="">
TS
this.image.style.transform = 'rotate(' + this.magneticHeading + 'deg)';
Uncertain about the reason behind the malfunction, suspecting Angular's rejection towards the manipulation attempt in TS through .style.transform...