{"action":"opened","issue":{"url":"https://api.github.com/repos/nozzle/nzTour/issues/44","repository_url":"https://api.github.com/repos/nozzle/nzTour","labels_url":"https://api.github.com/repos/nozzle/nzTour/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/nozzle/nzTour/issues/44/comments","events_url":"https://api.github.com/repos/nozzle/nzTour/issues/44/events","html_url":"https://github.com/nozzle/nzTour/issues/44","id":187699033,"number":44,"title":"Service is not defined issue.","user":{"login":"RahulJyala","id":22998189,"avatar_url":"https://avatars.githubusercontent.com/u/22998189?v=3","gravatar_id":"","url":"https://api.github.com/users/RahulJyala","html_url":"https://github.com/RahulJyala","followers_url":"https://api.github.com/users/RahulJyala/followers","following_url":"https://api.github.com/users/RahulJyala/following{/other_user}","gists_url":"https://api.github.com/users/RahulJyala/gists{/gist_id}","starred_url":"https://api.github.com/users/RahulJyala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RahulJyala/subscriptions","organizations_url":"https://api.github.com/users/RahulJyala/orgs","repos_url":"https://api.github.com/users/RahulJyala/repos","events_url":"https://api.github.com/users/RahulJyala/events{/privacy}","received_events_url":"https://api.github.com/users/RahulJyala/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-07T12:26:03Z","updated_at":"2016-11-07T12:26:03Z","closed_at":null,"body":"I am getting Following Error :- \r\n\r\n**`ReferenceError: service is not defined`**\r\nMy code is as following \r\n\r\n```\r\n.controller('PlaylistsCtrl', function($scope,nzTour) {\r\n  var tour = {\r\n     config: {\r\n        mask: {\r\n            visible: true, // Shows the element mask\r\n            clickThrough: false, // Allows the user to interact with elements beneath the mask\r\n            clickExit: false, // Exit the tour when the user clicks on the mask\r\n            scrollThrough: true, // Allows the user to scroll while hovered over the mask\r\n            color: 'rgba(0,0,0,.7)' // The mask color\r\n        },\r\n        container: 'body', // The container to mask\r\n        scrollBox: 'body', // The container to scroll when searching for elements\r\n        previousText: 'Previous',\r\n        nextText: 'Next',\r\n        finishText: 'Finish',\r\n        animationDuration: 400, // Animation Duration for the box and mask\r\n        dark: false // Dark mode (Works great with `mask.visible = false`)\r\n    } ,\r\n    steps: [{\r\n        target: '#first-element',\r\n        content: 'This is the first step!',\r\n    }, {\r\n        target: '.some .other .element',\r\n        placementPriority: [ 'right', 'top', 'bottom', 'left' ],\r\n        content: 'Blah blah blah. I prefer to show up on the right.',\r\n    }, {\r\n        target: '#menu-element',\r\n        content: 'I guess this is a menu!',\r\n    }, {\r\n        target: '#last-element',\r\n        content: 'It is over! :(',\r\n    }]\r\n};\r\n\r\nnzTour.start(service.tours[tour])\r\n    .then(function() {\r\n        console.log('Tour Finished!');\r\n    })\r\n    .catch(function() {\r\n        console.log('Tour Aborted!')\r\n    });\r\n```"}}
{"actor":{"display_login":"RahulJyala"}}