Cannot read property 'length' of undefined
Opened this issue · 0 comments
jdnichollsc commented
Hi man,
Check the error detail => http://screencast.com/t/8ketiBYuO6Q4
And my code:
$scope.photoBrowser = function(photoUrl){
var myApp = new Framework7({
init: false, //IMPORTANT - just do it, will write about why it needs to false later
});
var myPhotoBrowserStandalone = myApp.photoBrowser({
type: 'standalone',
theme: 'light',
photos : [photoUrl],
initialSlide: 0,
onClose: function(){
myApp = undefined;
}
});
myPhotoBrowserStandalone.open();
};