Skip to content

Instantly share code, notes, and snippets.

@kevinold
Created June 19, 2014 21:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevinold/54352dc15abd5d5b9757 to your computer and use it in GitHub Desktop.
Save kevinold/54352dc15abd5d5b9757 to your computer and use it in GitHub Desktop.
// 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