V
V
vldggv2019-05-30 18:04:08
JavaScript
vldggv, 2019-05-30 18:04:08

How to work with javascript on a working site (bitrix)?

A site on bitrix that actively uses javascript (and custom elements) in component output templates.
for example, in one of the templates (there are many) the line:

<mainslider v-model="formData" class="section" :data="<?=$arResult['json']?>"></mainslider>

and all javascript code is packed into a single .js file
how to parse this mess? apparently the development was carried out in vue or angular, after which the scripts were packed into one .js file and abandoned on the site, which already in the output templates the component refers to this file.
Can I somehow parse this file to a form acceptable for understanding?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question