|
|
|
|
|
by JohnMunsch
4649 days ago
|
|
You bring up two really good points there. I will add a screenshot to the Github repo and there is an opportunity to use a directive for the color picker. I'm not sure about the quantity picker though, what's that going to look like in the HTML? One element in the code gives you all of the quantity fields? My use of directives to date has been rather limited so I look forward to exploring that more in some upcoming work. |
|
Now you get the added benefit that you can test directives individually, as well as the whole controller. Right now, if you do some restructuring of the page, you could end up in a situation where you break all of your test cases. I mean, in this case it might be overkill, but as a general principle I think it's the right approach.
Anyway, looking forward to see what you do next!