Created
June 19, 2014 21:57
-
-
Save kevinold/54352dc15abd5d5b9757 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Using https://github.com/mendhak/angular-intro.js | |
// I'm trying to set ngIntroAutostart from my HomePageApp controller | |
// ngIntroAutostart defined here: https://github.com/mendhak/angular-intro.js/blob/master/src/angular-intro.js#L16 | |
// my app and controller | |
var HomePageApp = angular.module("HomePageApp", ["angular-intro"]); | |
HomePageApp.controller('HomePageTourController', function($scope, $http) { | |
$scope.autostart = "true"; | |
}); | |
// html | |
<div id="wrap" ng-app="HomePageApp" ng-controller="HomePageTourController" | |
ng-intro-autostart="{{autostart}}" | |
ng-intro-options="IntroOptions" ng-intro-method="CallMe" | |
ng-intro-oncomplete="CompletedEvent()" ng-intro-onexit="ExitEvent()" | |
ng-intro-onchange="ChangeEvent()" ng-intro-onbeforechange="BeforeChangeEvent()" | |
ng-intro-onafterchange="AfterChangeEvent()" | |
> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment