Comments (5)
To control yourself when it's called, you can call the method directly from the controller,
So first you do the setup:
<div ng-intro-method="CallMe" ...
Then in your controller,
$scope.CallMe()
But because the DOM elements aren't necessarily ready, you need to do it in a timeout.
$timeout(function() { $scope.CallMe();},0);
I've got an example in a plunkr here:
http://plnkr.co/edit/yovnsnXcoUE04Fix5L4A?p=preview
Have a look at index.html then script.js.
The other way, I'll add an option in the attributes for it in a few minutes.
from angular-intro.js.
I've added an option, ng-intro-autostart="true"
in this commit
If you set it, ng-intro-autostart="true"
, the intro should autostart.
from angular-intro.js.
Sweet that will do the trick.
from angular-intro.js.
I know I closed this issue but I think autostart does not work properly. Sometimes the dom is not fullly loaded when it runs.
from angular-intro.js.
In this commit:
244d4f3
I've added a $timeout
around the call. This should make the directive wait until the DOM is ready, then it will invoke the auto start.
from angular-intro.js.
Related Issues (20)
- Angular Example Problem HOT 1
- Append tour html to DOM element different than body.
- 1st time I am not able to load modal ui proper
- Change state and URL without closing Intro
- Commercial use? HOT 2
- Angular 1.6.9 HOT 1
- Can we get rid of bower? It's 2018 HOT 3
- Issue with loading from webpack
- Question: Install warnings and how to build the intro.js
- Sample code for using hints
- How to call anther tour after completing first tour
- Purchase license for commercial use? HOT 2
- Intro.js v2.9.3, onExit duplicate calls
- How to use with Typescript in Angularjs?
- How include in webpack?
- introJs is not a function using webpack
- Add new custom button
- IntroJs helper is black on ios HOT 1
- Intro.js not working with jquerymodal
- IntroJS element selection does not work with angular components
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-intro.js.