AngularJS + Base Href Case Sensitive?

前端 未结 6 892
情话喂你
情话喂你 2020-12-10 13:43

I\'m struggling to understand why my base href seems to be case sensitive. I have a page with a base href and utilizes angularjs routing.

html:

<         


        
6条回答
  •  天命终不由人
    2020-12-10 14:27

    a nice solution to this problem is to create a decorator for $route and set the rules how case insensitives. With this way you don't have to create the field caseInsensitiveMatch for each "when". In this URL you can found more about this solution: http://iranreyes.com/angularjs-decorating-route

提交回复
热议问题