new tab openTab = function () { $http.post(\'www.google.com\'); } >
I solved this question this way.
newTab $scope.openTab = function() { $scope.url = 'www.google.com'; }