2015-07-13 16:12:48 -07:00
|
|
|
library angular2.src.router.route_config_normalizer;
|
|
|
|
|
|
|
|
import "route_config_decorator.dart";
|
2015-09-18 15:41:02 -07:00
|
|
|
import "package:angular2/src/core/facade/exceptions.dart" show BaseException;
|
2015-07-13 16:12:48 -07:00
|
|
|
|
|
|
|
RouteDefinition normalizeRouteConfig(RouteDefinition config) {
|
|
|
|
return config;
|
|
|
|
}
|
2015-09-18 15:41:02 -07:00
|
|
|
|
|
|
|
void assertComponentExists(Type component, String path) {
|
|
|
|
if (component == null) {
|
2015-10-20 09:38:14 -07:00
|
|
|
throw new BaseException(
|
|
|
|
'Component for route "${path}" is not defined, or is not a class.');
|
2015-09-18 15:41:02 -07:00
|
|
|
}
|
|
|
|
}
|