重定向 select 标签中的 ng-change

redirect on ng-change in select tag

如何在下面的代码中传递 groupId

<select ng-options="group.id as group.name for group in groups" 
        ng-model="groupId" ng-controller="redirectCtrl" 
        ng-change="go('group/list/{{groupId}}')">

不需要(或没有必要)在 ng-change 表达式中使用插值,只需使用有效的表达式来构造要传入的参数:

尝试:

 ng-change="go('group/list/' + groupId)"