Help us understand the problem. What is going on with this article?

Vue.js 基本

More than 1 year has passed since last update.

単なるメモです。

jsファイル内
Vue クラスをインスタンス化することでvue.jsが使える
・オプション名: 値
el: 適用する範囲
data:{ プロパティ名: 値}

→ プロパティ名をtemplate(htmlファイル)で参照する
例: {{ プロパティ名 }} or v-text=“プロパティ名”

ディレクティブ
v-pre プロパティ無効化
v-text 文字
v-bind、v-html html動的生成
v-on イベントハンドリング

computed:{
プロパティ名: 関数
}
method:{
プロパティ名: 関数
}

computed は 依存関係なし
method は 画面が再描写されると再評価される

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした