hakimel / reveal.js

The HTML Presentation Framework
https://revealjs.com
MIT License
67.59k stars 16.63k forks source link

Cannot read property 'contains' of undefined #2137

Open ikismail opened 6 years ago

ikismail commented 6 years ago

Hello I'm trying to do some presentation which is rendered dynamically using angularjs

I have a list of slides which contains the slide details as JSON Objects.

$scope.slides = [ { name: "Slide 1" }, { name: "Slide 2" } ]

Inside my slides div <div class="slides"> .. Im creating section tags dynamically using angularjs ng-repeat.

<div id="reveal" class="reveal">
  <div class="slides">
     <section  ng-repeat="slide in slides">
       {{slide.name}}
    </section>
  </div>
</div>

It is not working properly and reveal is not taking it accurately.

Here is the code : Plunker

Can anyone help me this ?

bonatoc commented 6 years ago

Here's a test app using Ionic 1.3 and reveal.js.

Since the .js files are not minified nor concatenated, you can use Dev Tools and take a look at app.js, services.js, controllers.js and the templates to see how I wired ui-router to reveal, and how I generate dynamically some of the slides.

https://portfolio-f03e3.firebaseapp.com/#/catalog/page/0