Render 404 instead of redirecting 404 in angularjs

后端 未结 3 950
旧巷少年郎
旧巷少年郎 2021-02-13 05:31

I\'m looking for a good approach to render 404 page instead of redirecting 404 page in angularjs. Many solutions I have found is all about redirecting to another page. It will c

3条回答
  •  北恋
    北恋 (楼主)
    2021-02-13 06:26

    You could also use ui-router as previously answered here: https://stackoverflow.com/a/23290818/2723184. IMHO, you not only get an awesome library but you get a better solution.

提交回复
热议问题