I have an endpoint for school -> “/school”. This is a page for add school. This page has a model and this model contain cities vec. But Model default is empty. When page load, i should request “/city” and get all cities to model.cities.
But i could not done it. I thought, “load cities when click city select box” and yes, it loaded but it requested every time i clicked.
At the end, i have two choices. 1- Load cities when page load. 2- Load cities when add school form load.