Coder Social home page Coder Social logo

angular-intro.js's Introduction

angular-intro.js

An angularjs directive that wraps intro.js functionality.

angularintro

See the project page for an overview.

Details

The two main directives are ng-intro-options and ng-intro-method.

ng-intro-options needs to point at a $scope object which contains the intro.js options. The options are exactly the same as the original. This also allows you to modify the options as part of your controller behavior if necessary.

ng-intro-method is a method name that you want to use later. In other words, put any name in there that doesn't exist on the $scope already. The directive will create a method with that name so that you can call it yourself later.

For example, if you set ng-intro-method="CallMe", then you can later call ng-click="CallMe();" as long as you are still in the same controller scope. You can also specify a step number in the method call, CallMe(3);.

To start the intro from code, either call $scope.CallMe(); or set ng-intro-autostart="true". If the $scope.CallMe(); doesn't work, it might be because your DOM isn't ready. Put it in a $timeout.

There are also directives that link to the intro.js callbacks, namely ng-intro-oncomplete, ng-intro-onexit, ng-intro-onchange ng-intro-onbeforechange and ng-intro-onafterchange.

License

As with intro.js, this is under the MIT license.

angular-intro.js's People

Contributors

mendhak avatar coryk135 avatar bobey avatar

Watchers

James Cloos avatar  avatar

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.