angular how to redirect to external link automatically code example Example: angular redirect to external url window.location.href = '...';