When attempting to pass a value to a function on ng-click, I noticed that it works outside of the ionic tag without interpolation. However, I am confused as to why I need to interpolate it within the ionic tag. Here is a sample of the code:
<span ng-click="menuRouting(appCrtlVM.routingValue.home)"> {{appCrtlVM.routingValue.home}}</span>
The code above works without interpolation.
<ion-item menu-close class="menuList padding-5" ng-click="menuRouting({{appCrtlVM.routingValue.home}})">
<div class="menu-img"><img src="./img/icons/home_icon1.png"></div><div class="menu-name"> Home </div>
</ion-item>
However, the code above does not work without interpolation, as it is being treated as plain text.
Any help on this matter would be greatly appreciated. Thank you.