Skip to content

Commit

Permalink
feat(@schematics/angular): generate functional interceptors by default
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
alan-agius4 committed Sep 26, 2023
1 parent 81c7e82 commit a189962
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/schematics/angular/interceptor/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"functional": {
"type": "boolean",
"description": "Creates the interceptor as a `HttpInterceptorFn`.",
"default": false
"default": true
}
},
"required": ["name", "project"]
Expand Down

0 comments on commit a189962

Please sign in to comment.