Datables using angular directives