The page uses angular routing to switch different page views. If you do not use the a tag to switch, use ng-click to trigger some method judgments first, and then start the routing to switch views. Is this possible? If so, how should I write the statement? I haven't found any reliable cases online, so I'd like to ask you to answer your questions.
If you use ngRouter, use $location.path to switch.
If you use uiRouter, you can use state.go
I’m here for Amway uiRouter
It is also possible to change the current loaction through ng-click