"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "packages/schematics/angular/component/index.ts" between
angular-cli-12.0.3.tar.gz and angular-cli-12.0.4.tar.gz

About: Angular CLI is a command line interface for Angular.

index.ts  (angular-cli-12.0.3):index.ts  (angular-cli-12.0.4)
skipping to change at line 119 skipping to change at line 119
} }
return selector; return selector;
} }
export default function (options: ComponentOptions): Rule { export default function (options: ComponentOptions): Rule {
return async (host: Tree) => { return async (host: Tree) => {
const workspace = await getWorkspace(host); const workspace = await getWorkspace(host);
const project = workspace.projects.get(options.project as string); const project = workspace.projects.get(options.project as string);
if (options.path === undefined && project) { if (!project) {
throw new SchematicsException(`Project "${options.project}" does not exist
.`);
}
if (options.path === undefined) {
options.path = buildDefaultPath(project); options.path = buildDefaultPath(project);
} }
options.module = findModuleFromOptions(host, options); options.module = findModuleFromOptions(host, options);
const parsedPath = parseName(options.path as string, options.name); const parsedPath = parseName(options.path as string, options.name);
options.name = parsedPath.name; options.name = parsedPath.name;
options.path = parsedPath.path; options.path = parsedPath.path;
options.selector = options.selector =
options.selector || buildSelector(options, (project && project.prefix) || ''); options.selector || buildSelector(options, (project && project.prefix) || '');
 End of changes. 1 change blocks. 
1 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)