Very abstact pagination angular directive