官术网_书友最值得收藏!

Using your component

In your view, add your custom HTML element component:

      <p id="app">
<my-component></my-component>
</p>

Viewing this in the browser should replace the <my-component> HTML tag with a <p> and a hello message.

There may be some cases where a custom HTML tag won't be parsed and accepted - these cases tend to be in <table>, <ol>, <ul>, and <select> elements. If this is the case, you can use the is="" attribute on a standard HTML element:

      <ol>
<li is="my-component"></li>
</ol>
主站蜘蛛池模板: 屏山县| 峨眉山市| 香港| 彩票| 慈溪市| 新宁县| 赤壁市| 团风县| 贵溪市| 永安市| 青冈县| 论坛| 梅河口市| 黑水县| 浦县| 邵东县| 鹰潭市| 灵丘县| 安西县| 沙坪坝区| 镇平县| 仪陇县| 阆中市| 孝义市| 芒康县| 三明市| 丰原市| 广南县| 莱阳市| 道真| 芜湖市| 遂溪县| 东港市| 台山市| 迭部县| 寻乌县| 宿松县| 清水河县| 兴文县| 栾川县| 清镇市|