redirect to other url in angular controller in angular 5 code example Example: angular redirect to external url window.location.href = '...';