I have link for Ajax load but app.lazy.create() just working only 1st time I click the 1st link then the 2nd time in the link It not working.
Or Where I should put app.lazy.create(); ?
HTML LINK
<a href="/list/boy/" class="tab-link tab-active" >girl</a>
<a href="/list/girl/" class="tab-link ">boy</a>
routes: [
{
path: '/list/:post_mcat/',
componentUrl: './pages/list.html?post_type={{post_mcat}}',
id: 'list'
},
]
$$(document).on('page:init', '.page[data-name="list-post"]', function (e, page) {
...
app.request.post(appUrl, postData, function (data) {
$$('.post-list').append(itemList);
app.lazy.create(".post-list");
});
..
});