在角JS控制器之间传递数据?
App.controller('ProductCtrl',function($scope,$productFactory){ $productFactory.get().success(function(data){ $scope.products = data; });});
<ul> <li ng-repeat="product as products"> {{product.name}} </li></ul
<ul class="cart"> <li> //click one added here </li> <li> //click two added here </li> </ul>
相关分类