Size: a a a

2017 January 27

NA

Narek Abovyan in Dev Chat
источник
2017 January 30

SS

Simon Schürmann in Dev Chat
Is it possible to seperate controller, router into multiple documents?
источник

1

1C-Bitrix in Dev Chat
yes
источник

SS

Simon Schürmann in Dev Chat
Ok... I created a controller.js and at the end of the file i have: module.exports = HilfeController, PingController, LoginController, OtherwiseController;
источник

SS

Simon Schürmann in Dev Chat
In the index.js i call var myController = require('./controller.js');
источник

SS

Simon Schürmann in Dev Chat
Unfortunately i get the error: ReferenceError: PingController is not defined
источник

1

1C-Bitrix in Dev Chat
try to export one controller
источник

NK

ID:206441217 in Dev Chat
Code in studio
источник

1

1C-Bitrix in Dev Chat
да там всё понятно
источник

1

1C-Bitrix in Dev Chat
Simon Schürmann
Unfortunately i get the error: ReferenceError: PingController is not defined
источник

1

1C-Bitrix in Dev Chat
Simon Schürmann
Ok... I created a controller.js and at the end of the file i have: module.exports = HilfeController, PingController, LoginController, OtherwiseController;
источник

SS

Simon Schürmann in Dev Chat
Thanks a lot! It works like a charm! 👍 I will try to export the routing part on my own and will get back to the chat if I wont find a solution.
источник

SS

Simon Schürmann in Dev Chat
Hmm acctually it makes no more sense to export the router part into a new file, because in the index.js only the router part is left 😊
источник

1

1C-Bitrix in Dev Chat
Oaga
источник

K

Kostya in Dev Chat
Привет
источник

K

Kostya in Dev Chat
Есть кто тут?
источник

NK

ID:206441217 in Dev Chat
источник

K

Kostya in Dev Chat
Может кто помочь разобраться с отправкой файлов?
источник

K

Kostya in Dev Chat
$.sendPhoto({ path: 'tt.png'})
источник

K

Kostya in Dev Chat
закрывает воркера и переоткрывает его
источник