AngularJSに慣れ、現在タグ内のコードに問題がある簡単なプログラムです。私はこのコードを、中括弧、常にWebページに表示される内部のコンテンツを実行するたびに、どのように私はウェブページに中括弧が表示されないようにする
<head>
<title> Your Shopping Cart </title>
</head>
<body ng-controller="CartController">
<h1> Your Order </h1>
<div ng-repeat="item in items">
<input ng-model="item.quantity">
*<span>{{item.title}}</span> //Keeps showing on webpage
<span>{{item.price | currency}}</span> //Keeps showing on webpage
<span>{{item.price * item.quantity | currency}}</span>* //Keeps showing on webpage
<button ng-click="remove($index)">Remove</button>
</div>
<script src="angular.min.js"> </script>
<script>
function CartController($scope) {$scope.items = [
{title: 'Paint Pots', quantity: 8, price: 3.95},
{title: 'Polka Dots', quantity: 17, price: 12.95},
{title: 'Pebbles', quantity: 5, price: 6.95}
];
scope.remove = function(index){$scope.items.splice(iindex, 1);
}
}
</script>
</body>
コンパイルエラーのためのソール。構文エラーのためAngularがクラッシュする可能性があります。 – georgeawg