CLI

generate resolver

Command
ng generate resolver
ng generate r

Generates a new, generic resolver definition in the given project.

Arguments

name

The name of the new resolver.

Value Typestring

Options

flat

When true (the default), creates the new files at the top level of the current project.

Value TypebooleanDefaulttrue
functional

Creates the resolver as a ResolveFn.

Value TypebooleanDefaulttrue
project

The name of the project.

Value Typestring
skip-tests

Do not create "spec.ts" test files for the new resolver.

Value TypebooleanDefaultfalse
Jump to details