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 :
Comments
Post a Comment