I'm running into an issue where I need to pass a Handlebar HTML variable to a scope function using Angular. If I try passing it as function('{{variable}}'), the function receives the variable literally as "{{variable}}". But if I use function({{variable}}), Angular throws an error. Any suggestions on how to tackle this problem?
Below is the code snippet for reference:
<span ng-repeat="social in model.social_login">
<button class="btn btn-{{social.network_name}} btn-sm" data-ng-show="model.credentials.network=='{{social.network_name}}'||!model.credentials.logged_in" data-ng-click="Login('{{social.network_name}}')"><i class="fa fa-{{social.network_name}}"></i> | {{model.action}} {{social.label}}</button>
</span>