{"action":"created","issue":{"url":"https://api.github.com/repos/rigor789/vue-scrollto/issues/18","repository_url":"https://api.github.com/repos/rigor789/vue-scrollto","labels_url":"https://api.github.com/repos/rigor789/vue-scrollto/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/rigor789/vue-scrollto/issues/18/comments","events_url":"https://api.github.com/repos/rigor789/vue-scrollto/issues/18/events","html_url":"https://github.com/rigor789/vue-scrollto/issues/18","id":221681984,"number":18,"title":"[Feature Request] Global default options","user":{"login":"kodekrendel","id":26049747,"avatar_url":"https://avatars0.githubusercontent.com/u/26049747?v=3","gravatar_id":"","url":"https://api.github.com/users/kodekrendel","html_url":"https://github.com/kodekrendel","followers_url":"https://api.github.com/users/kodekrendel/followers","following_url":"https://api.github.com/users/kodekrendel/following{/other_user}","gists_url":"https://api.github.com/users/kodekrendel/gists{/gist_id}","starred_url":"https://api.github.com/users/kodekrendel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kodekrendel/subscriptions","organizations_url":"https://api.github.com/users/kodekrendel/orgs","repos_url":"https://api.github.com/users/kodekrendel/repos","events_url":"https://api.github.com/users/kodekrendel/events{/privacy}","received_events_url":"https://api.github.com/users/kodekrendel/received_events","type":"User","site_admin":false},"labels":[{"id":355784643,"url":"https://api.github.com/repos/rigor789/vue-scrollto/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-04-13T21:04:58Z","updated_at":"2017-04-13T21:41:11Z","closed_at":null,"body":"How to assign options into script? \r\nI tried:\r\n\r\n```\r\n    export default{\r\n      data () {\r\n        return {\r\n          options: {\r\n            duration: 50000,\r\n            easing: 'ease-in'\r\n          }\r\n        }\r\n      }\r\n    }\r\n```\r\nAnd\r\n```\r\n    export default{\r\n      data () {\r\n        return {\r\n          duration: 50000,\r\n          easing: 'ease-in'\r\n        }\r\n      }\r\n    }\r\n```\r\n\r\nBut it doesn't work. Using Nuxt and SSR. \r\nAdding object literal to the directive is working fine, but I don't want to use it such way."},"comment":{"url":"https://api.github.com/repos/rigor789/vue-scrollto/issues/comments/294029110","html_url":"https://github.com/rigor789/vue-scrollto/issues/18#issuecomment-294029110","issue_url":"https://api.github.com/repos/rigor789/vue-scrollto/issues/18","id":294029110,"user":{"login":"kodekrendel","id":26049747,"avatar_url":"https://avatars0.githubusercontent.com/u/26049747?v=3","gravatar_id":"","url":"https://api.github.com/users/kodekrendel","html_url":"https://github.com/kodekrendel","followers_url":"https://api.github.com/users/kodekrendel/followers","following_url":"https://api.github.com/users/kodekrendel/following{/other_user}","gists_url":"https://api.github.com/users/kodekrendel/gists{/gist_id}","starred_url":"https://api.github.com/users/kodekrendel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kodekrendel/subscriptions","organizations_url":"https://api.github.com/users/kodekrendel/orgs","repos_url":"https://api.github.com/users/kodekrendel/repos","events_url":"https://api.github.com/users/kodekrendel/events{/privacy}","received_events_url":"https://api.github.com/users/kodekrendel/received_events","type":"User","site_admin":false},"created_at":"2017-04-13T21:41:11Z","updated_at":"2017-04-13T21:41:11Z","body":"@rigor789 this working! Great, thank you for the workaround. Not so clean code, but still great :+1: "}}
{"actor":{"display_login":"kodekrendel"}}