angular ライクボタン

$scope.plusOne = function(index) { $scope.products[index].likes += 1; }; <div class="rating"> <p class="likes" ng-click="plusOne($index)">+ {{ product.likes }} </p> </div>

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.