Refactore javascript for module URL rewrite #15356
Labels
Event: dmcdindia
Fixed in 2.1.x
The issue has been fixed in 2.1 release line
Fixed in 2.2.x
The issue has been fixed in 2.2 release line
Fixed in 2.3.x
The issue has been fixed in 2.3 release line
Issue: Format is valid
Gate 1 Passed. Automatic verification of issue format passed
Use javascript inside *.phtml file it's legacy code that we try to refactor according to Magento way.
For that we have <script type="text/x-magento-init" /> tag, where we declare path to JS file and pass parameters if they are needed
Preconditions
Steps to reproduce
Expected result
JS Script code should be removed from template file and treated as a separate component
Actual result
JS script is added directly to template file.(Wrong coding format)
The text was updated successfully, but these errors were encountered: