2021-04-23から1日間の記事一覧

Vue.jsでイベント関連のディレクティブを使う

v-on:イベント名="..."の...にメソッドの名前を指定する。 <html lang="ja"> <head> <meta charset="UTF-8"> <title>Vue.js</title> </head> <body> <div id="app"> <button v-on:click="onclick">クリック</button> <p>{{ message }}</p> </div> <script src="https://cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.js"></script> </body></html>

Vue.jsで算出プロパティを使う

算出プロパティは既存のプロパティを演算した結果を取得するためのゲッター。 定義済の算出プロパティをテンプレートから参照するには{{ プロパティ名 }}とする。 compute.html <html lang="ja"> <head> <meta charset="UTF-8"> <title>Vue.js</title> </head> <body> <div id="app"> <p>{{ localEmail }}</p> </div> </body></html>

Gitでコミットテンプレートをセットする

Git

プロジェクトのルートディレクトリに.gitmessage.txtを配置します。 以下のような内容を記載します。 Commit subject (e.g. Implemented xxx feature ) Description (e.g. xxxx description) 以下のコマンドでコミットテンプレートをセットできます。 $ git …