{"id":3239,"date":"2014-03-20T21:05:53","date_gmt":"2014-03-20T21:05:53","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/20\/how-do-i-use-bootstrap-lightbox-with-angularjs-collection-of-common-programming-errors-2\/"},"modified":"2014-03-20T21:05:53","modified_gmt":"2014-03-20T21:05:53","slug":"how-do-i-use-bootstrap-lightbox-with-angularjs-collection-of-common-programming-errors-2","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/20\/how-do-i-use-bootstrap-lightbox-with-angularjs-collection-of-common-programming-errors-2\/","title":{"rendered":"How do I use Bootstrap Lightbox with AngularJS?-Collection of common programming errors"},"content":{"rendered":"<p>I have the following setup:<\/p>\n<p>Unfortatunatly when I load a page, even without an actual lightbox image on it, I get the following Javascript error:<\/p>\n<p><code>Uncaught TypeError: Cannot read property 'Constructor' of undefined<\/code><\/p>\n<p>This happens here:<\/p>\n<pre><code>\/\/ We depend upon Twitter Bootstrap's Modal library to simplify things here\nLightbox.prototype = $.extend({},$.fn.modal.Constructor.prototype);\n<\/code><\/pre>\n<p>Am I doing something wrong or should I not try to combine bootstrap-lightbox with Angular UI&#8217;s Bootstrap? In the latter case, should I just try to reproduce the Lightbox functionality in Angular myself?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have the following setup: Unfortatunatly when I load a page, even without an actual lightbox image on it, I get the following Javascript error: Uncaught TypeError: Cannot read property &#8216;Constructor&#8217; of undefined This happens here: \/\/ We depend upon Twitter Bootstrap&#8217;s Modal library to simplify things here Lightbox.prototype = $.extend({},$.fn.modal.Constructor.prototype); Am I doing something [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3239","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3239","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=3239"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3239\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=3239"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=3239"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=3239"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}