Git Product home page Git Product logo

angular-reveal-menu's Introduction

angular-reveal-menu

Angular directive that allows you to create a dynamic and customised menu for your reveal.js presentation

###dependencies:

jquery
angularjs
reveal.js

###Usage

  • Include the module file in your index.html file:
<!-- dependencies -->
<script src="js/reveal.min.js"></script>
<script src="js/jquery.min.js"></script>
<script src="js/angular.js"></script>

<!-- angular-reveal-menu -->
<script src="js/RevealMenuModule.js"></script>

<!-- Your own app -->
<script src="js/myApp.js"></script>
  • Build your slides as normal but add data- attributes to the slides (these will become available on the section for binding):
<section id="relearn" data-majortitle="This is my major title" data-subtitle="I would like to put additional info here">
    <img src="img/mybigpicture.jpg"/>
    <p>
        I don't need a heading in the slide body because the menu can handle that for me.
    </p>
</section>
  • Add RevealMenuModule module as a dependency to you main app module:
var app = angular.module('myapp', ['RevealMenuModule']);
  • Build your menu
<div ng-app="myapp" revealmenu>
    <div ng-repeat="section in sections" ng-class="{highlight: section.isActive}">
        <a ng-href="#/{{section.id}}">{{section.majortitle}}</a>
    </div>
    <h3>{{currentSection.majortitle}} {{currentSection.subtitle}}</h3>
</div>

###Author

####Michael Dausmann

angular-reveal-menu's People

Contributors

javascriptmick avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

baldscone

angular-reveal-menu's Issues

Do you have an example?

Hello,

I'm trying to use your module. Where do I declare the menu? Do you have a sample presentation?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.