Pass URL to as $routeParam in AngularJS app

前端 未结 4 1817
慢半拍i
慢半拍i 2021-02-01 22:21

How can I pass actual URL (with slashes, commas, etc.) as a $routeParam to AngularJS App?

this will work: http://paprikka.github.io/le-bat/#/preview/asdadasda

4条回答
  •  礼貌的吻别
    2021-02-01 22:48

    I have mixed search params with routes. Your search needs to come before your routes.. specifically for older browsers. I think ie7 blows up if its not url/?search/#/hash

    Try this format:

    domain.com/?my=params&another=param/#/my/hashes
    

提交回复
热议问题