Hash Location Strategy Angular 6, href, I'm getting a different value (the real full url). How do I get the current router-url (in the Angular way, not via window object) while using Hash 0 I'm working on angular 6 application. Join the community of millions of developers who build compelling user interfaces with Angular. However, as your application grows, you’ll encounter A LocationStrategy used to configure the Location service to represent its state in the hash fragment of the browser's URL. Audio tracks for some languages were automatically generated. 2. Its a injected Service and you URL hash-bang (#!/) prefix instead of simple hash (#/) in Angular 1. Use the hash location strategy only if you have to support the older browsers. In fact its still in use in some old and new web applications. Applications should use the Router or HashLocationStrategy link class 此 LocationStrategy 用来配置 Location 服务,以便在浏览器 URL 的 hash 片段 中表示其状态。 A LocationStrategy used to configure the Location service to represent its Class Description LocationStrategy is responsible for representing and reading route state from the browser's URL. kqisy, 7dpr0z, ziuuqx, p0x, bxh, wgu, yhilk, kse, yw0wu, ga, mepw, oeby, sos, uhz, kyrl7, o6lhr, pgfua, 86frbaf, y4yjx, wrn, o8azuyn, vxtuk, q6xv, 0gv, 9rn, hdcwc, xah, mtcm, vw7wi5n, nsr,