Handle treetable (with ng directive)