
This reverts commit cf7292fcb1
.
This commit triggered an existing race condition in Google code. More work is needed on the Router to fix this condition before this refactor can land.
16 lines
446 B
Dart
16 lines
446 B
Dart
library angular2.src.router.route_config_normalizer;
|
|
|
|
import "route_config_decorator.dart";
|
|
import "package:angular2/src/facade/exceptions.dart" show BaseException;
|
|
|
|
RouteDefinition normalizeRouteConfig(RouteDefinition config) {
|
|
return config;
|
|
}
|
|
|
|
void assertComponentExists(Type component, String path) {
|
|
if (component == null) {
|
|
throw new BaseException(
|
|
'Component for route "${path}" is not defined, or is not a class.');
|
|
}
|
|
}
|