$route and app partitioning