RevealJS Implementation using Ionic


I have implemented reveal js with audio slide show plugin.


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() {

content: ‘Loading’,
animation: ‘fade-in’,
showBackdrop: true,
maxWidth: 200,
showDelay: 0
$timeout(function () {
}, 2000);

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


        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.