Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how do i navigate away from an angular app

Tags:

angularjs

so i have an angular app with custom routing set up.

all <a> links outside any angular scope with $route (in my case, the only scope is the ng-view) navigate like normal (ie. standard location change and page reload, as if angular didn't exist)

all links inside inside an angular scope with $route (ie. my ng-view) get routed through angular's $routeProvider - they are given a template and controller.

my question

how do i make an <a> link inside my ng-view navigate away from the angular app, to a different, static, non-angular location in the site?

like image 911
stef Avatar asked Apr 22 '13 10:04

stef


1 Answers

Just use

<a target="_self" href="url">
like image 92
Ajay Beniwal Avatar answered Oct 04 '22 14:10

Ajay Beniwal