Example pagination directive in Angular.