Skip to content

Instantly share code, notes, and snippets.

@goofmint
Created Apr 16, 2018
Embed
What would you like to do?
<ons-page id="tab1detail">
<p style="text-align: center;">
こちらは詳細画面です
<ons-button class="btn" modifier="large">戻る</ons-button>
</p>
<script>
ons.getScriptPage().onInit = function() {
const tab1DetailController = {
__name: 'Tab1DetailController',
'.btn click'() {
this.trigger('changeTitle', {
back: false,
title: 'メイン'
});
$('#tab1nav')[0].popPage();
}
};
h5.core.controller('#tab1detail', tab1DetailController);
}
</script>
</ons-page>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment