Using pagination directive from ui-bootstrap