Angularjs $window.open('url', '_blank') Directs To Currentpath+url Instead Of Url
I am trying to open a new tab with a specific url. When i enter $window.open('www.example.com', '_blank') i do get a new tab, just like i wanted but instead of going to: www.exam
Solution 1:
Did you try $window.open('http://www.example.com', '_blank')
(that is, add http://
so it's not interpreted as a relative URL)?
Post a Comment for "Angularjs $window.open('url', '_blank') Directs To Currentpath+url Instead Of Url"