1

You can build the UI without using KO (use standard PHTML templates) so it is rendered server side and only carry out the Ajax action using JS which will result in the elements being unaffected by the loading of JS. The downside is if the user interacts with the buttons before the JS loads nothing will happen, which sounds fairly unlikely but you could ...


1

You can use the function scope variable Training\view\frontend\web\js\view\knockouts.js define(['jquery','ko','uiComponent','mage/url','mage/storage'], function ($, ko, Component, urlBuilder,storage) { 'use strict'; return Component.extend({ defaults: { template: 'Learning_Training/knockouts' }, ...


Only top voted, non community-wiki answers of a minimum length are eligible