Table directive for AngularJS