Hey there, I've encountered an issue. The expression {{}}
is failing to be inserted in ng-click.
Here's my code snippet:
<div ng-repeat="dir in model.Directories">
<a ng-href="" id="{{dir.Name}}" ng-click='clickToPath("http://localhost:9298/api/browse?path={{dir.Path}}")'>{{dir.Name}}</a>
</div>
The value of {{dir.Name}}
works perfectly fine when inserted. However, the value of {{dir.Path}}
within ng-click doesn't get inserted properly, it just shows as {{dir.Path}}
.
I need some help resolving this!
Thank you so much!