CLI

generate entry-point

Command
ng generate entry-point [name] [options]

Creates a new secondary entry point in an Angular library project.

Arguments

name

The name of the secondary entry point (for example, 'testing' or 'feature/sub').

Value Typestring

Options

entry-file

The file name at which to create the secondary entry point's public API file, without the .ts extension.

Value TypestringDefaultpublic-api
prefix
Aliasp

A prefix to apply to generated selectors.

Value Typestring
project

The name of the library project where the secondary entry point should be added. If not specified, the CLI will determine the project from the current directory.

Value Typestring
skip-tests

Do not create spec.ts test files for the new secondary entry point.

Value TypebooleanDefaultfalse
skip-ts-config

Do not update tsconfig.json to add a path mapping for the new secondary entry point.

Value TypebooleanDefaultfalse
standalone

Creates a secondary entry point based upon the standalone API, without NgModules.

Value TypebooleanDefaulttrue
Jump to details