Using Angular inside of a bootstrap popover

前端 未结 2 1732
猫巷女王i
猫巷女王i 2020-12-19 14:44

I\'m trying to create a table inside a Bootstrap popover that has an ng-repeat to make the rows but it seems like the angular is failing and I\'m not sure why.

HTML:

2条回答
  •  隐瞒了意图╮
    2020-12-19 15:43

    You can make this work out of the box using angular-strap popovers.

    Angular Strap Project

    Angular Strap is native bootstrap directives done right. So basically it would look like this:


    HTML for calling/activating popover

    
    
    

    pop over template

        

    Your Title

    '> Click me

    If that doesn't work it should be 99.9% there and it shouldn't take too much effort to fill in the gaps by looking at angular strap's documentation. They have great docs. The strap project also has great implementations for most of the rest of the boostrap 3 components.

    Plukr using the above code for popover demo

    Like I said that code up there is like 99% there, but just to go the extra mile I did up a plunk demo to show exactly how it's done.

提交回复
热议问题