The angular ui-router allows multiple nested views. The role of these interchangeable views seems to overlap the role of directives.
What are the pros/cons
**In Config function:** .state('list', { url:'/list', template:'', controller:'UserInfoTableController', }); **In Directive:** angular.module('UserInfo').directive("userInfoTable", function() { return { templateUrl:'templates/UserInfoTable.html', restrict:'EA', }; });