{"action":"closed","issue":{"url":"https://api.github.com/repos/visjs/angular-visjs/issues/34","labels_url":"https://api.github.com/repos/visjs/angular-visjs/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/visjs/angular-visjs/issues/34/comments","events_url":"https://api.github.com/repos/visjs/angular-visjs/issues/34/events","html_url":"https://github.com/visjs/angular-visjs/issues/34","id":87133626,"number":34,"title":"angular-vis module doesn't work with requirejs","user":{"login":"Tooa","id":5375334,"avatar_url":"https://avatars.githubusercontent.com/u/5375334?v=3","gravatar_id":"","url":"https://api.github.com/users/Tooa","html_url":"https://github.com/Tooa","followers_url":"https://api.github.com/users/Tooa/followers","following_url":"https://api.github.com/users/Tooa/following{/other_user}","gists_url":"https://api.github.com/users/Tooa/gists{/gist_id}","starred_url":"https://api.github.com/users/Tooa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tooa/subscriptions","organizations_url":"https://api.github.com/users/Tooa/orgs","repos_url":"https://api.github.com/users/Tooa/repos","events_url":"https://api.github.com/users/Tooa/events{/privacy}","received_events_url":"https://api.github.com/users/Tooa/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-10T22:48:25Z","updated_at":"2015-06-11T05:22:35Z","closed_at":"2015-06-11T05:22:35Z","body":"Hi, \r\n\r\nIn combination with requirejs the module yields the following error:\r\n\r\n    ReferenceError: vis is not defined\r\n    at new <anonymous> (angular-vis.js:7)\r\n    at new <anonymous> (HomeController.js:15)\r\n    at Object.invoke (angular.js:4426)\r\n    at $get.extend.instance (angular.js:8945)\r\n    at nodeLinkFn (angular.js:8075)\r\n    at compositeLinkFn (angular.js:7514)\r\n    at nodeLinkFn (angular.js:8108)\r\n    at compositeLinkFn (angular.js:7514)\r\n    at compositeLinkFn (angular.js:7518)\r\n    at nodeLinkFn (angular.js:8108)\r\n\r\nBeginning of the HomeController looks like:\r\n\r\n    define([\r\n\t'angular',\r\n        'ngMaterial',\r\n        'vis',\r\n        'ngVis'\r\n    ], function(angular) {\r\n\t    'use strict';\r\n\r\n       angular.module('myApp.home', ['ngMaterial', 'ngVis']);\r\n       angular.module('myApp.home').controller('HomeController', ['$scope', '$mdDialog', 'VisDataSet',     function ($scope, $mdDialog, VisDataSet) {\r\n\r\nI appreciate any help. Angularjs is relative new for me, so even a quick fix is ok. \r\n\r\n"}}