mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-14 17:43:52 +08:00
As Angular v15.2 deprecates class-based resolvers and guards, this commit switches the `functional` flag default value to `true`. BREAKING CHANGE: `ng g resolver` and `ng g guard` now generate a functional resolver or guard by default. It is still possible to generate a (deprecated) class-based resolver or guard by using `ng g resolver --no-functional` or `ng g guard --no-functional`.