ngClick

自定義點擊事件

ng-click="expression"
  • 實作「訂購」按鈕的 ng-click 事件。

  self.addToCart = function () {
    self.carts.push({
      location: self.location,
      quantity: self.quantity,
      price: self.price
    });
  };

JS Bin

results matching ""

    No results matching ""