yuche / vue-strap

Bootstrap components built with Vue.js
http://yuche.github.io/vue-strap/
MIT License
4.71k stars 935 forks source link

popover content error #515

Open martijnhiemstra opened 6 years ago

martijnhiemstra commented 6 years ago

I am using the popover and I am seeing this error in the console:

Vue warn]: Error compiling template:

<span v-el:trigger>
    <slot></slot>
    <div v-el:popover v-if="show"
      :class="['popover',placement]"
      :transition="effect"
    >
      <div class="arrow"></div>
      <h3 class="popover-title" v-if="title">
        <slot name="title">{{title}}</slot>
      </h3>
      <div class="popover-content">
        <slot name="content">{{{content}}}</slot>
      </div>
    </div>
  </span>
- invalid expression: {{{content}}}

{{{content}}} - 3 brackets. 1 too much I think

ya-kostik commented 6 years ago

Hi! I think you use Vue 2, but current master version work only with Vue 1

Try to use v2 branch

ya-kostik commented 6 years ago

You can do this by install vue-strap from git:

npm i git@github.com:yuche/vue-strap.git#v2