Created
April 16, 2018 09:10
-
-
Save goofmint/0dc89d44e85341b6c5c38fad1bf5b0fb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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