I am working in an Angula4 project ,In this I have a hover to change image section ,I have did something like the below code but it is not working for me ,But the same code is perfectly working in (visual studio)other project.
What should I do next or What I have missed in this ...
product.component.html
<div class="col-5">
<div class="container" >
<img src="assets/bank/cart.png" id="ProductImage" class="img-fluid" data-toggle="modal" data-target="#exampleModalCenter" alt="Responsive image">
</div>
<div class="12">
<div class="row">
<img id="sm001" src="assets/bank/bal1.jpg" alt="img1" class="img-thumbnail" ref="assets/Product_Details/Show1.png">
<img id="sm005" src="assets/bank/bal2.jpg" alt="img2" class="img-thumbnail" ref="assets/Product_Details/Show2.png">
<img id="sm002" src="assets/bank/bal3.jpg" alt="img3" class="img-thumbnail" ref="assets/Product_Details/Show3.png">
<img id="sm003" src="assets/bank/bal4.jpg" alt="img4" class="img-thumbnail" ref="assets/Product_Details/Show4.png">
<img id="sm004" src="assets/bank/bal5.jpg" alt="img5" class="img-thumbnail" ref="assets/Product_Details/Show5.png">
</div>
</div>
index.html
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js">`</script>
<script>
$('img[id^=sm00]').click(function () {
$('#ProductImage').attr('src', $(this).attr('ref'));
});
</script>

(mouseenter) ="mouseEnter() "event to your image tag