Simple module showing how to extend a JavaScript Component
Place this in app/code/Niall
and run bin/magento setup:upgrade
This can also be placed in app/design/frontend/TheTheme/base/Magento_SomeModule
, in which case requirejs-config.js needs to reference Magento_SomeModule.
Example:
var config = {
'config':{
'mixins': {
'Magento_Customer/js/view/customer': {
'Niall_ExtendJavaScriptComponent/js/view/customer-extend':true
}
}
}
};