Search code examples
angularjsng-tags-input

Is it possible to invoke a scope method in the ngTagsInput template?


Something like

<script id="tagTemplate" type="text/ng-template">
    <div>
        <span>{{$getDisplayText()}}</span>
        <button ng-click='showDetails(data)'>More</button>
    </div>
</script>

Solution

  • It just got implemented and now it's possible to do $scope.showDetails(data).