Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49186

RevealJS Implementation using Ionic

$
0
0

@bbmishra86 wrote:

I have implemented reveal js with audio slide show plugin.

Example http://courses.telematique.eu/audio-slideshow/

My slides are dynamic and so when I am trying to implement slides for the first time its working fine but after coming back from slideview to list view to chose another slideList its breaks.
The dependencies doesn't get reloaded .
So i have to reload the page manually.

 $scope.$on("$ionicView.afterLeave", function() {

$window.location.reload(true);
$ionicLoading.show({
content: 'Loading',
animation: 'fade-in',
showBackdrop: true,
maxWidth: 200,
showDelay: 0
});
$timeout(function () {
$ionicLoading.hide();
}, 2000);
});

$scope.$on("$ionicView.enter", function() {
setTimeout(function(){

    Reveal.initialize({

        controls: true,
            progress: true,
            //history: true,
            center: true,
            audioPrefix: 'audio/',
            audioSuffix: '.mp3',
            audioDefaultDuration: 5,
            audioPlayerOpacity: 0.5,


            // transition: 'slide',
            // transitionSpeed: 'slow',
            // backgroundTransition: 'slide'
            dependencies: [
             // Remote control your reveal.js presentation using a touch device
            { src: 'plugin/audio-slideshow/audio-slideshow.js', async: false },

        ]
    });
}, 0);

});
So how can i able to load only dependencies without reloading the entire application.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49186

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>