1.28 kBSource Map (JSON)View Raw
1{"version":3,"file":"route_definition.js","sourceRoot":"","sources":["../../../../modules/@angular/router-deprecated/src/route_definition.ts"],"names":[],"mappings":"","sourcesContent":["import {Type} from '../src/facade/lang';\nimport {RegexSerializer} from './rules/route_paths/regex_route_path';\n\n/**\n * `RouteDefinition` defines a route within a {@link RouteConfig} decorator.\n *\n * Supported keys:\n * - `path` or `aux` (requires exactly one of these)\n * - `component`, `loader`, `redirectTo` (requires exactly one of these)\n * - `name` (optional)\n * - `data` (optional)\n *\n * See also {@link Route}, {@link AsyncRoute}, {@link AuxRoute}, and {@link Redirect}.\n */\nexport interface RouteDefinition {\n path?: string;\n aux?: string;\n regex?: string;\n regex_group_names?: string[];\n serializer?: RegexSerializer;\n component?: Type|ComponentDefinition;\n loader?: () => Promise<Type>;\n redirectTo?: any[];\n name?: string;\n data?: any;\n useAsDefault?: boolean;\n}\n\n/**\n * Represents either a component type (`type` is `component`) or a loader function\n * (`type` is `loader`).\n *\n * See also {@link RouteDefinition}.\n */\nexport interface ComponentDefinition {\n type: string;\n loader?: () => Promise<Type>;\n component?: Type;\n}\n"]}
\No newline at end of file