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

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -