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 Type
string
Options
flat
When true (the default), creates the new files at the top level of the current project.
Value Type
boolean
Defaulttrue
functional
Creates the resolver as a ResolveFn
.
Value Type
boolean
Defaulttrue
project
The name of the project.
Value Type
string
skip-tests
Do not create "spec.ts" test files for the new resolver.
Value Type
boolean
Defaultfalse
Jump to details