Angularjs Normal Links with html5Mode

前端 未结 4 1063
忘了有多久
忘了有多久 2020-11-28 03:46

I am working with angularjs in html 5 mode. Which appears to take control of all href\'s on the page. But what if I want to have a link to something within the same domain o

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-28 04:24

    If you don't want Angular to take control of the href. Place a target attribute on the link.

    So PDF will by pass the html5mode and the routeProvider and the browser will just go to that url.

提交回复
热议问题