angularjs - Angular loading page without template -


i have spa uses angular routing. have link open specific page (not using template) when clicked.

in other words have links act regular links , redirect user new page. don't want these links load inside of template.

surely has possible right?

many thanks, kiran

if understood question right, wanna replace enitre current page redirect new external page? if so, can definately using $location service s follows:

$window.location.href = 'http://www.google.com'; 

just put ng-click, inject $location service controller , go.

further documentation on :

https://docs.angularjs.org/guide/$location

similar question on :

redirect new page in angularjs using $location


Comments

Popular posts from this blog

html - height not adding height to a empty div -

Oracle SQL. How to select specific IDs where value of columns specify criteria? -

python - Robot Framework location and name of keyword -