I am trying to pass a handlebar HTML variable to a scope function using Angular and if I pass using function('{{variable}}'), the value received in the function is literally {{variable}}. If i use function({{variable}}), Angular pitches a fit. Any ideas?
Here is the snippet..
<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>