You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.3 KiB
55 lines
1.3 KiB
/**
|
|
* Creates a new, generic NgModule definition in the given or default project.
|
|
*/
|
|
export interface Schema {
|
|
/**
|
|
* The new NgModule imports "CommonModule".
|
|
*/
|
|
commonModule?: boolean;
|
|
/**
|
|
* Create the new files at the top level of the current project root.
|
|
*/
|
|
flat?: boolean;
|
|
/**
|
|
* Apply lint fixes after generating the module.
|
|
* @deprecated Use "ng lint --fix" directly instead.
|
|
*/
|
|
lintFix?: boolean;
|
|
/**
|
|
* The declaring NgModule.
|
|
*/
|
|
module?: string;
|
|
/**
|
|
* The name of the NgModule.
|
|
*/
|
|
name: string;
|
|
/**
|
|
* The path at which to create the NgModule, relative to the workspace root.
|
|
*/
|
|
path?: string;
|
|
/**
|
|
* The name of the project.
|
|
*/
|
|
project?: string;
|
|
/**
|
|
* The route path for a lazy-loaded module. When supplied, creates a component in the new
|
|
* module, and adds the route to that component in the `Routes` array declared in the module
|
|
* provided in the `--module` option.
|
|
*/
|
|
route?: string;
|
|
/**
|
|
* Create a routing module.
|
|
*/
|
|
routing?: boolean;
|
|
/**
|
|
* The scope for the new routing module.
|
|
*/
|
|
routingScope?: RoutingScope;
|
|
}
|
|
/**
|
|
* The scope for the new routing module.
|
|
*/
|
|
export declare enum RoutingScope {
|
|
Child = "Child",
|
|
Root = "Root"
|
|
}
|