Skip to content

Instantly share code, notes, and snippets.

Created Apr 16, 2018
What would you like to do?
<ons-page id="tab1main">
<p style="text-align: center;">
<ons-input id="message" modifier="underbar" placeholder="メッセージ" float></ons-input>
<ons-button class="btn" modifier="large">詳細画面に移動</ons-button>
ons.getScriptPage().onInit = function() {
const tab1MainController = {
__name: 'Tab1MainController',
'.btn click'() {
this.trigger('changeTitle', {
back: true,
title: '詳細'
$('#tab1nav')[0].pushPage('tab1-detail.html', {
message: this.$find('#message').val()
h5.core.controller('#tab1main', tab1MainController);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment