angularjs - smart table