V2 Single File Component - How do i load data through ajax?

Single File Component - How do i load data through ajax?

Just write normal ajax code in your script tag as below and commit returned data to state in order to use it in other components.

$(selector).load(URL,data,callback);

https://blog.framework7.io/mastering-v2-router-958ea2dbd24f
it seems cant do this, except async route method in routes config