Questions tagged [underscorejs]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
5
votes
2answers
1k views

How to override price-utils.js specific method?

Currently I successfully override the Price display base on local currency on other pages. But I got a problem on Product Details page. The price is override by price-utils.js file: Magento/Catalog/...
2
votes
0answers
606 views

When to use Underscore.js vs Knockout.js for JS templating in M2?

I see that core M2 uses both Underscore.js and Knockout.js, although it looks like M2 core has extended base Knockout and added some new functionality to it. If I am building something that binds ...
2
votes
1answer
707 views

Magento 2: Why are there Multiple Calls to `_.extend`

The underscore javascript library contains a method named extend. You can use extend to copy properties of one javascript object to another javascript object in a consistent way. These properties ...