Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: angular/angular
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main@{1day}
Choose a base ref
...
head repository: angular/angular
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
  • 15 commits
  • 193 files changed
  • 10 contributors

Commits on Mar 24, 2026

  1. feat(core): Allow other expression for exhaustive typechecking

    When the switched expression is nested within a union, exhaustive typechecking needs to know which expression to check.
    This change adds the possibility of specifying the expression to check:
    
    ```
    @component({
      selector: 'app-root',
      imports: [],
      template: `
        @switch (state.mode) {
          @case ('show') { {{ state.menu }}; }
          @case ('hide') {}
          @default never(state);
        }
      `,
      changeDetection: ChangeDetectionStrategy.OnPush,
    })
    export class App {
      state!: { mode: 'hide' } | { mode: 'show'; menu: number };;
    }
    ```
    
    fixes #67406
    JeanMeche authored and leonsenft committed Mar 24, 2026
    Configuration menu
    Copy the full SHA
    8bc31a5 View commit details
    Browse the repository at this point in the history
  2. refactor(router): expose ComponentInputBindingOptions in public API

    Expose  `ComponentInputBindingOptions` as part of the public API
    SkyZeroZx authored and leonsenft committed Mar 24, 2026
    Configuration menu
    Copy the full SHA
    1782114 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5879f31 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    37b1c5d View commit details
    Browse the repository at this point in the history
  5. fix(forms): change FieldState optional properties to non-optional | u…

    …ndefined
    
    This improves compatibility with TypeScript's exactOptionalPropertyTypes.
    
    Fixes #67246
    alxhub authored and leonsenft committed Mar 24, 2026
    Configuration menu
    Copy the full SHA
    ee8d209 View commit details
    Browse the repository at this point in the history
  6. feat(forms): add FieldState.getError()

    Added a `getError(kind: string)` method to `FieldState` that returns the first validation error of a given kind, or `undefined` if no such error exists. This method is reactive and will re-evaluate when errors change.
    
    Fixes #63905
    
    Also updated public API goldens and added unit tests.
    alxhub authored and leonsenft committed Mar 24, 2026
    Configuration menu
    Copy the full SHA
    709f5a3 View commit details
    Browse the repository at this point in the history
  7. build: lock file maintenance

    See associated pull request for more information.
    angular-robot authored and leonsenft committed Mar 24, 2026
    Configuration menu
    Copy the full SHA
    1533242 View commit details
    Browse the repository at this point in the history
  8. build: update cross-repo angular dependencies

    See associated pull request for more information.
    angular-robot authored and leonsenft committed Mar 24, 2026
    Configuration menu
    Copy the full SHA
    9192dfe View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    b4ae9cf View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    c9f7a7f View commit details
    Browse the repository at this point in the history
  11. docs(docs-infra): redefine /guide/pipes redirect

    Update the definition of the `/guide/pipes` redirect in order to avoid breaking the `a.dev/guide` redirect to Not Found page.
    hawkgs authored and leonsenft committed Mar 24, 2026
    Configuration menu
    Copy the full SHA
    78c2d0a View commit details
    Browse the repository at this point in the history
  12. refactor(core): expand input flags type

    Expands the type for the input flags in definitions since the current one prevents some of the generated code from compiling.
    crisbeto authored and leonsenft committed Mar 24, 2026
    Configuration menu
    Copy the full SHA
    d9712e6 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    098553b View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    050b14b View commit details
    Browse the repository at this point in the history
  15. feat(core): Set default Component changeDetection strategy to OnPush

    The default change detection strategy is now OnPush.
    
    BREAKING CHANGE: Component with undefined `changeDetection` property are now `OnPush` by default. Specify `changeDetection: ChangeDetectionStrategy.Eager` to keep the previous behavior.
    JeanMeche authored and leonsenft committed Mar 24, 2026
    Configuration menu
    Copy the full SHA
    eae8f7e View commit details
    Browse the repository at this point in the history
Loading