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

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>
主站蜘蛛池模板: 华坪县| 晋中市| 荔波县| 任丘市| 尼勒克县| 长白| 龙岩市| 长治县| 隆子县| 南宁市| 北海市| 木里| 梓潼县| 永兴县| 阿克苏市| 郴州市| 和硕县| 平顶山市| 太保市| 葵青区| 葫芦岛市| 云阳县| 崇礼县| 榆社县| 文成县| 博罗县| 轮台县| 托里县| 广西| 滦南县| 偏关县| 浦东新区| 天长市| 金坛市| 北辰区| 栖霞市| 徐州市| 苏尼特右旗| 汉川市| 宜宾市| 平远县|