I'm trying to deal with Framework 7.
I did everything as in the example: http://framework7.io/get-started/
I want, in a div with a class: page-content to load content from another page on an AJAX request and I just don’t understand how to do this?
Code snippet:
<div data-page="index" class="page"> <div class="page-content"></div> </div>
What I was trying to do:
var mainView = myApp.addView ('. view-main')
mainView.router.loadPage ('about.html');
I see that the AJAX request is on, but the content does not load!
Found such a solution:
$$. get (url, null, function (data) {$$ ('. page-content'). html (data);});