ruby on rails - How do I use Bootstrap Lightbox with AngularJS? -
i have following setup:
- rails 4.0 running on heroku
- jquery-rails , jquery-ui-rails gems
- ui-bootstrap-tpls.js angular ui bootstrap (0.6)
- bootstrap-lightbox.js bootstrap lightbox
unfortatunatly when load page, without actual lightbox image on it, following javascript error:
uncaught typeerror: cannot read property 'constructor' of undefined
this happens here:
// depend upon twitter bootstrap's modal library simplify things here lightbox.prototype = $.extend({},$.fn.modal.constructor.prototype); am doing wrong or should not try combine bootstrap-lightbox angular ui's bootstrap? in latter case, should try reproduce lightbox functionality in angular myself?
i got similar error website.
http://jammyandsammy.hostei.com/wip/neecal/#/
"uncaught typeerror: cannot read property 'extend' of undefined " i believe bug, indeed in load order.
this jsfiddle uses same lightbox, cannot find solution.
http://jsfiddle.net/jasonbutz/yrbxd/
sorry can't out
Comments
Post a Comment