Is there a way to open a new tab using state.go with parameters?
This is the state configuration:
.state("view", {
url: "/view",
templateUrl: 'app/components/view/view.html',
controller: 'viewController',
params: {
data: ''
}
})
In the controller:
var url = $state.href('view', {data: JSON.stringify($scope.data)});
window.open(url,'_blank');
Although the above code successfully redirects to a new tab, I am unable to retrieve the passed parameter values in the viewcontroller.