angularjs - Open button in new window/tab angular -


i enable "open in new window / tab" on button. frankly, tried many ways, , unluckily doesn't work.

here button:

<button class="button no-margin-bottom" data-ng-click="vm.navigatetoproject(project)" data-sd-secured data-sd-secured-contextual="project.permissions.canviewprojectdetails" data-translate>projects.view</button> 

any ideas?

what want achieve new window / tab? run angular application in parallel, or have external link?

if want run in parallel, there few issues you'll come across concerning shared data. can read more in post: angularjs: open new browser window, yet still retain scope , controller, , services

but if want option open new tab, can done easily: simplest - html solution: <a href="#" target="_blank">link/button</a>

or using javascript alone: window.open('https://stackoverflow.com/', '_blank'); here can see more approach how open url in new tab using javascript or jquery?

or implementing in angular open links in new window using angularjs


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -