Reads the annotations of a component and configures the registry based on them
Source
void configFromComponent(dynamic component) { if (component is! Type && !(component is ComponentFactory)) { return; } // Don't read the annotations from a type more than once – // this prevents an infinite loop if a component routes recursively. if (this._rules.containsKey(component)) { return; } var annotations = getComponentAnnotations(component); if (annotations != null) { for (var i = 0; i < annotations.length; i++) { var annotation = annotations[i]; if (annotation is RouteConfig) { List<RouteDefinition> routeCfgs = annotation.configs; routeCfgs.forEach((config) => this.config(component, config)); } } } }