Now, if I go to the simple-page for the first time I see the input. Then if I go to anotherPage1 and come back to the simple-page the mounted method works but I dont see the input. It shows me clean template like as if the mounted method did not exist. But if I go to anotherPage1, then to anotherPage2 and then come back to the sumple-page everything works fine and I see the input again!
In short:
-> simple-page - works (I see the input)
-> simple-page -> anotherPage1 -> simple-page - doesn’t work (I dont see the input)
-> simple-page -> anotherPage1 -> anotherPage2 -> simple-page (I see the input)
Но при первом переходе на страницу все таки находится нужный элемент. И дальше если уйти на две страницы вперед и вернуться, то тоже сработает. А если на одну страницу вперед уйти и вернуться, то уже не найдет.