Skip to content

Commit

Permalink
fix(angular): remove leftover code causing duplicated route config wh…
Browse files Browse the repository at this point in the history
…en generating a library (#19326)
  • Loading branch information
leosvelperez authored Sep 26, 2023
1 parent ae38219 commit 8d767ed
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 125 deletions.

This file was deleted.

8 changes: 0 additions & 8 deletions packages/angular/src/generators/library/lib/add-module.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,15 @@
import type { Tree } from '@nx/devkit';
import { addChildren } from './add-children';
import { addLazyLoadedRouterConfiguration } from './add-lazy-loaded-router-configuration';
import { addLoadChildren } from './add-load-children';
import { addRouterConfiguration } from './add-router-configuration';
import { NormalizedSchema } from './normalized-schema';

export function addModule(
host: Tree,
options: NormalizedSchema['libraryOptions']
) {
if (options.routing && options.lazy) {
addLazyLoadedRouterConfiguration(host, options);
}
if (options.routing && options.lazy && options.parent) {
addLoadChildren(host, options);
}
if (options.routing && !options.lazy) {
addRouterConfiguration(host, options);
}
if (options.routing && !options.lazy && options.parent) {
addChildren(host, options);
}
Expand Down

This file was deleted.

0 comments on commit 8d767ed

Please sign in to comment.