Knock out js Short hands

 Knock out JS short hand properties.


You can use 


1. this.knockoutProperty /= value; 

instead this.knockoutProperty(this.knockoutProperty() / value)

2. this.knockoutProperty *= value; 

instead this.knockoutProperty(this.knockoutProperty() * value)

3. this.knockoutProperty -= value; 

instead this.knockoutProperty(this.knockoutProperty() - value)

4. this.knockoutProperty += value; 

instead this.knockoutProperty(this.knockoutProperty() + value)


Please like , share and subscribe.

Comments

Popular posts from this blog

Hosting and Goodies

Magento 2 Import Scripts

How to add product attribute value in minicart magento 2