     restrict: 'E'
     replace: true
     scope:
-        nocount: '='
         pagecount: '='
         current: '='
         pagesize: '='


  watchScope: ->
    @scope.$watch('pagecount', (tits) =>
      @options.pageCount = Math.ceil(@scope.pagecount / @options.pageSize)
      @getOptions()
      @gatherElements()

    )
    @scope.$watch('pagesize', (tits) =>
      @options.pageSize = @scope.pagesize || 10
      @getOptions()
      @gatherElements()
      @updatePager()
