Skip to content

Commit a189962

Browse files
committed
feat(@schematics/angular): generate functional interceptors by default
This commit updates the interceptor schematic to generate function intererceptors by default. BREAKING CHANGE: `ng g interceptor` now generate a functional interceptor by default. or guard by default. To generate a class-based interceptor the `--no-functional` command flag should be used.
1 parent 81c7e82 commit a189962

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: packages/schematics/angular/interceptor/schema.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"functional": {
4545
"type": "boolean",
4646
"description": "Creates the interceptor as a `HttpInterceptorFn`.",
47-
"default": false
47+
"default": true
4848
}
4949
},
5050
"required": ["name", "project"]

0 commit comments

Comments
 (0)