1

component.htmlを定義するファイルを持つ HTML5 コンポーネント/WebComponent がある場合、 で宣言<template>を行う意味はありますか? つまり、次のうちどれがベストプラクティスですか?<!DOCTYPE html>component.html

<template>
    <!-- some html content -->
</template>

または

<!DOCTYPE html>
<template>
    <!-- some html content -->
</template>
4

1 に答える 1