Magento2. KnockoutJs. Define Scope and call function on the same html node
I have a very simple Component define([ ‘uiComponent’, ‘Magento_Customer/js/customer-data’ ], function (Component, customerData) { ‘use strict’; return Component.extend({ /** @inheritdoc */ initialize: function () { this._super(); this.notificationCounts = customerData.get(‘notification_counts’); } }); }); I want to conditionally display an html element… Read More »Magento2. KnockoutJs. Define Scope and call function on the same html node