I have code like this:
window.open(\'https://api.instagram.com/oauth/authorize/\', \'_blank\', \'width=700,height=500,toolbar=0,menubar=0,location=0,status=1
var newTab = $window.open('', '_blank'); promise .then(function () { var url = '...'; newTab.location.href = url; });