Angular - Use directive to display pagination.