angularJS アプリケーションを作成するとき、ほとんどすべての「コンポーネント」をディレクティブに作成するのがベスト プラクティスですか? コンポーネントと言うときは、機能を実行する HTML 要素のグループを意味します。例:
ログイン:
- <input type="text" name="username" />
- <input type="password" name="password" />
- <button>Login</button>
イベント:
- <h3>Title</h3>
- <input type="date" name="eventStart" />
- <p>This is an event description</p>
ブログ投稿:
- <h3>Title</h3>
- <small>Blog meta - Blog Author</small>
- <p>This is a post blah blah blah</p>