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

How to override js in magento 2

Magento 2.3.3 Realease Notes - Features and Enhancement

Magento 2 Add Product Attribute Programmatically