export default function CartRouters($stateProvider, $urlRouterProvider) {

}

function CartRouters($stateProvider, $urlRouterProvider) {
}

CartRouters.$inject = ['$stateProvider', '$urlRouterProvider'];

export default CartRouters;

Use injector to do angular config function.