I also have this problem. Setting the background colour works, but not image
Carson H
@Carson H
Posts made by Carson H
-
RE: Backgroung image in <ons-page>
-
RE: How to access ons-lazy-repeat refresh() function?
Thanks a lot everyone. I understand now. I didn’t realize that list can accessed anywhere in the controller with the this keyword:
angular .module('myApp') .controller('MyController', function () { var self = this; function someFunction () { self.delegate.refresh(); } })
It was more of a confusion with angularjs than onsen. Also thanks for the $timeout tip
-
RE: How to access ons-lazy-repeat refresh() function?
Hi Fran. I’m sorry if I’m being daft but I don’t see refresh() anywhere in the JavaScript. It is in the HTML, but I don’t know how to call it from JavaScript
-
RE: How to access ons-lazy-repeat refresh() function?
Thanks for replying Fran but I still don’t know how to access this function from my controller. I wan’t to call refresh after an image has loaded from a database. How can I call delegate.refresh() from my controller? Calling this.delegate.refresh() gives me not a function error.
-
How to access ons-lazy-repeat refresh() function?
Re: ons-lazy-repeat won't realize the changes on the model if the size of the list did not change.
in this topic IliaSky mentions lazyRepeat._provider.refresh() but I don’t know how to inject that into my controller. At the moment I’m using a very hacky method to change the length of the list temporarily to force a refresh.
-
RE: ons lazy repeat delegate when getting response from database
How did you get the configureItemScope function to wait for the wordlist to be loaded from the db? I get “cannot read property ‘0’ of undefined” when I try something similar.