Answer the question
In order to leave comments, you need to log in
How to add values of two selects in angular.js?
Do not scold too much, I took up angular, so to speak, in order to feel the benefits on a mini-task (as they say).
And so we have select. The data is stored in an array. When selected, the price for each item is immediately displayed.
But now you need to add more additional options to the product and sum up the price of a particular product with the price of additional options
. Product1 = 500 + additional option 200 and should output 700 as a result.
How to count elements of different selects?
Here is what I have thrown so far .... there is only one field and everything seems to be working. I ask because I do not want to reinvent the wheel or sculpt govnokod. What is the best way to organize all this?
Thanks in advance. My "creation" codepen.io/aderus/pen/zBrKBQ
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question