new tab openTab = function () { $http.post(\'www.google.com\'); } >
You should use the $location service
$location
Angular docs: