billpull/knockout-bootstrap

options not working in knockout 3.3.0

linuxjcq opened this issue · 1 comments

Hi,
I use knockout 3.3.0 work with knockout-bootstrap newest version, I found options not working, below is my code:

<button class="btn btn-success" 
data-bind="popover: {template: 'addGroup', placement: 'left', title: ''}">
       <i class="ion-plus-round"></i>&nbsp;新建分组
</button>

When I use knockout-bootstrap 0.2.0, it works well

Thanks

Hi @linuxjcq !
I don't know if you find your answer but yes, knockout-bootstrap works with knockout 3.3.0.

After having explored the sources, I found that you have to declar your options into a object options like this :

<button class="btn btn-success" 
data-bind="popover: {template: 'addGroup', options : { placement: 'left', title: '' } }">
       <i class="ion-plus-round"></i>&nbsp;新建分组
</button>

Best,
Tristan.