当我单击“Sorgula”按钮时,我想从一个页面导航到另一个页面。我编写了 ng-click 函数并添加了控制器,但不起作用。
[![enter image description here][1]][1]
当我单击“Sorgula”按钮时,我想从一个页面导航到另一个页面。我编写了 ng-click 函数并添加了控制器,但不起作用。
[![enter image description here][1]][1]
您可以使用 $state.go 导航到另一个状态。不要忘记在控制器中注入 '$state' 例如:- $state.go("Tab1.Main");
As per documentation for ngClick it requres expression to execute as mentioned in documentation
Instead of expression you are providing controller's action so You should probably use the ngHref directive along with the ngClick:
This solution is already provided at following link