Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
您应该将您的选择更改为:
<select ng-model="query" ng-options="product.code for product in products"></select>
在您的控制器中,您将使用 $location 服务通过手表更改您想要的路线。类似于以下内容:
$scope.$watch('query', function() { $location.path('/some/route/' + query); });