3 - Generating components and Nx lib
1. Generate our first Nx lib
nx g lib --help>nx g lib --help
nx generate @nrwl/angular:library [name] [options,...]
Options:
--name Library name
--directory A directory where the lib is placed
--publishable Generate a buildable library.
--prefix The prefix to apply to generated selectors.
--skipFormat Skip formatting files
--simpleModuleName Keep the module name simple (when using --directory)
--skipPackageJson Do not add dependencies to package.json.
--skipTsConfig Do not update tsconfig.json for development experience.
--style The file extension to be used for style files. (default: css)
--routing Add router configuration. See lazy for more information.
--lazy Add RouterModule.forChild when set to true, and a simple array of routes when set to false.
--parentModule Update the router configuration of the parent module using loadChildren or children, depending on what `lazy` is set to.
--tags Add tags to the library (used for linting)
--unitTestRunner Test runner to use for unit tests (default: jest)
--dryRun Runs through and reports activity without writing to disk.
--help Show available options for project target.2. Add container and presentational components

3. Add a default route to the auth module
4. Update the consuming Customer Portal App module

5. Add presentational component to container component
6. Add new folder for shared interfaces
7. Change the ChangeDetectionStrategy to OnPush
Last updated