refactor(router): Simplify location strategy providers (#46215)
refactor(router): Simplify location strategy providers (#46215)

Rather than using a `provideLocationStrategy` function, the `useHash`
can simply provide one strategy or another. The current factory function
does not change how the dependencies are used.

PR Close #46215

JiaLiPassion/angular,angular/angular,JiaLiPassion/angular,gkalpak/angular,angular/angular,gkalpak/angular,angular-indonesia/angular,angular-indonesia/angular,angular-indonesia/angular,angular-indonesia/angular,JiaLiPassion/angular,angular/angular,angular/angular,gnomeontherun/angular,gnomeontherun/angular,gnomeontherun/angular,JiaLiPassion/angular,gkalpak/angular,gkalpak/angular,gnomeontherun/angular