I am building a custom Angular directive to display pagination across my application.
I'm using isolated scope to pass totalNoOfRecords but it's not getting displayed. Any help will be appreciated
Here's my code what I tried so far
Template where I'm calling the directive:
<pagination totalData="111"></pagination>
Directive.js
function pagination() {
    return {
        restrict: 'EA',
        templateUrl: 'template/directives/pagination.html',
        scope: {
            totalData: '@',
        },
        link: dirPaginationControlsLinkFn
    };
}
Directive Template
<span class="pagination-text">
   of {{totalData}} 
</span>
 
     
    