Why href not working in angular 6?
href not working in angular 6
5 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Jul 2, 2019, 12:49 AM EDT
archana devi120 reputationPosted Jul 2, 2019, 2:24 AM EDT
Piyush PansuriyaRank #454 · 5.5K reputationPosted Jul 2, 2019, 2:23 AM EDT
Sivakumar KonetiRank #1,556 · 1K reputationPosted Jul 2, 2019, 7:55 PM EDT
Muthu KumarRank #935 · 2.2K reputationPosted Aug 21, 2019, 9:40 PM EDT
Multiple way you can solve this issue,
1. If you want same way href use like this [attr.href]
2. Simply use routerLink property.
3. Use by calling function by this.router.navigate() and navigatebyurl