V
V
vetsmen2017-11-19 17:52:23
PHP
vetsmen, 2017-11-19 17:52:23

Using same methods in different Vue components?

I have 2 different components through which the user can log in. The same methods are used for authorization. How can I use the same method in two different components?
Weakly imagine this without making it into a separate file, but then how? How to initialize them?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DevMan, 2019-08-29
@redd_i

because there is no such path, specify the full path.

0
0xD34F, 2017-11-19
@vetsmen

Mixins.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question