Basic swatch functionality in angular
Extract swatchFactory service