0

I am using angular-router for page navigation. I need to open the new state in a new window. Is it possible? In my ng-click function I am using following state method.

$state.go('root.newpage', {uIds :Id});

I tried with the following code but I get 404 error

$window.open($state.go('root.newpage', {uIds :Id}), '_blank');

Any help would be appreciated!

Rajesh
  • 24,354
  • 5
  • 48
  • 79
Kichu
  • 1,641
  • 4
  • 21
  • 28
  • See this: http://stackoverflow.com/a/29075249 – zamarrowski Jan 15 '16 at 10:29
  • Possible duplicate of [AngularJS UI-Router : Get the absolute URL of the state with the parameters](http://stackoverflow.com/questions/24502065/angularjs-ui-router-get-the-absolute-url-of-the-state-with-the-parameters) – Alexander Elgin Jan 15 '16 at 10:32
  • Possible duplicate of [Angularjs $state open link in new tab](http://stackoverflow.com/questions/23516289/angularjs-state-open-link-in-new-tab) – ACBM Mar 14 '16 at 14:52
  • You may find the answer here [Open angularjs state in new window](https://stackoverflow.com/a/51565518/1959948) – Dalorzo Jul 28 '18 at 04:32

0 Answers0