resolve the confict between $routeProvider and $routeProvider.when