I am building an AngularJS application and i need to store data which is inside the p tags into local storage. The challenge is that ng-model cannot be associated with p tags. Example
<div class="row">
<div class="col">
<p>{{product.ID}}</p>
<p>{{product.title}}</p>
<button ng-click="addItem()">Add to Cart</button>
</div>
</div>
I have a list products and i am displaying it through ng-repeat and i want to store the product.ID and product.title of the product whose corresponding Add to Cart button is clicked.