Files
angular/modules/angular2/src/router/route_config_nomalizer.dart
Alex Rickabaugh c5294c77d9 Revert "refactor(router): improve recognition and generation pipeline"
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.
2015-11-23 16:26:47 -08:00

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.');
}
}