<div class = "cate" ng-repeat = "cate in categories" ng-click = "funcCall('{{cate.name}}')"></div>
The above code renders in the dom with the value for {{cate.name}} but when read in function it shows as {{cate.name}}.
How to pass such values and read them in controller functions?
Remove the braces and the quotes inside the ng-click as angular uses the contents that are there before placeholder replacement. Removing the braces and quotes makes it so when the code is evaluated it will look for the variable
cate
with propertyname
and pass it