ラチェット フレームワークを使用して、任意のページをスライドイン/スライドアウトできます。次のページにスライドする前に、最初にデータを取得する必要がある状況に到達します。データは取得できるのですが、ページのスライド遷移が消えてしまいます。これを行う方法はありますか?
ここにこの例のアンカーがあります:
<a href="next-link.html" data-transition="slide-in" data-want="I want this data here">Next link</a>
使ってみた、
$('a').each(function() {
`var $this = $(this);`
`$this.attr('data-ignore', 'push');`
`$this.click(function(e) {`
`e.stopPropagation();`
`//... get the data here $this.attr('data-want')`
`$this.attr('data-ignore', '');`
`});`
});