NivoSlider isn't working with base64 images loaded by AngularJS -
When I use nivoSlider with static images, it works like a magic: < Pre> When I try to load the gallery image with some dynamic base 64 image (via finger), then it does not work: is using Am I doing wrong? thanks all! You must provide the instructions that will initialize the nivo slider for you: Pre> Template: (not tested) & lt; Div class = "slider-cover" & gt; & Lt; Div id = "slider" class = "nivoSlider" & gt; & Lt; img src = "img / someimage.jpg" alt = "" / & gt; & Lt; / Div & gt; & Lt; / Div & gt;
< Code>
data-ng-repeat in a separate content
angular Modules ('myApp') instructions ('nivoSlider', function) {return {link: function ($ scope, elem) {$ scope. $ Apply (function () {$ (elem) .nivoSlider ();}}}}}
& lt; Div class = "slider-vepe" & gt; & Lt; nivo-slider id = "slider" class = "nivoSlider" & gt; & Lt; Img data-ng-repeat = "file in files" data-ng-src = "{{file.content}}" alt = "" /> & Lt; / Nivo-slider & gt; & Lt; / Div & gt;
Comments
Post a Comment