Reference an instance of slide-box via a popover link?


The title is quite self-explanatory. All I want really is to be able to use ng-click="nextSlide()" just like I use it in the header or anywhere else in the main document. Seems though that from this bit,

<script id="popover.html" type="text/ng-template">
          <div class="list">
            <a class="item" ng-click="nextSlide()">
            <a class="item" href="" target="_blank">

which is the template for the popover, it doesn’t work. Any solutions?