I got a popup that calls a RESTful server for Oauth authentication, but when the result returns, it displays JSON in the popup, rather than closing the popup and saving the JSON in the model, How to fix it?
this.socialLogin = function(provider) { var url = urlBase + '/' + provider, width = 1000, height = 650, top = (window.outerHeight - height) / 2, left = (window.outerWidth - width) / 2, socialPopup = null; $window.open(url, 'Social Login', 'width=' + width + ',height=' + height + ',scrollbars=0,top=' + top + ',left=' + left); };
source share