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

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>
主站蜘蛛池模板: 宣武区| 濮阳市| 大同县| 黄山市| 泗阳县| 开远市| 民权县| 广灵县| 兖州市| 金堂县| 清镇市| 新乡县| 桃园县| 红安县| 马关县| 福海县| 普兰店市| 合阳县| 富裕县| 南靖县| 陵水| 固始县| 柳州市| 弥勒县| 稻城县| 安陆市| 永泰县| 同心县| 盐池县| 仁怀市| 交城县| 伊春市| 泸定县| 邯郸市| 北辰区| 玉田县| 永年县| 堆龙德庆县| 兴和县| 财经| 洛川县|