{"action":"created","issue":{"url":"https://api.github.com/repos/vuejs/Discussion/issues/358","labels_url":"https://api.github.com/repos/vuejs/Discussion/issues/358/labels{/name}","comments_url":"https://api.github.com/repos/vuejs/Discussion/issues/358/comments","events_url":"https://api.github.com/repos/vuejs/Discussion/issues/358/events","html_url":"https://github.com/vuejs/Discussion/issues/358","id":102633359,"number":358,"title":"Get URL Param","user":{"login":"kayyyy","id":8193345,"avatar_url":"https://avatars.githubusercontent.com/u/8193345?v=3","gravatar_id":"","url":"https://api.github.com/users/kayyyy","html_url":"https://github.com/kayyyy","followers_url":"https://api.github.com/users/kayyyy/followers","following_url":"https://api.github.com/users/kayyyy/following{/other_user}","gists_url":"https://api.github.com/users/kayyyy/gists{/gist_id}","starred_url":"https://api.github.com/users/kayyyy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kayyyy/subscriptions","organizations_url":"https://api.github.com/users/kayyyy/orgs","repos_url":"https://api.github.com/users/kayyyy/repos","events_url":"https://api.github.com/users/kayyyy/events{/privacy}","received_events_url":"https://api.github.com/users/kayyyy/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-23T15:50:50Z","updated_at":"2015-08-23T17:30:47Z","closed_at":"2015-08-23T17:30:47Z","body":"Of course a big thank to @yyx990803 for `vuejs` :+1: \r\n\r\nNow my problem: i am trying to get the url param.\r\n```\r\nmodule.exports = {\r\n    template: require('./show.html'),\r\n\r\n    ready: function() {\r\n        this.fetchMessages();\r\n    },\r\n\r\n    methods: {\r\n        fetchMessages: function(params) {\r\n            this.$http.get('http://hostianer.dev/api/library/' + params.slug , function(course) {\r\n                this.$set('course', course);\r\n                console.log(params);\r\n            });\r\n        }\r\n    }\r\n\r\n};\r\n```\r\nBut i am getting the error, that `slug` is not defined.\r\nIf i use `{{$route.params.slug}}` in my view it returns the slug.\r\n\r\nThe API returns the slug: `http://hostianer.dev/api/library/slug`\r\n\r\nIf i hardcode the API Url it works, but of course if must be dynamicly :)\r\n( The current URL is `http://hostianer.dev/dashboard#!/library/shopware-grundlagen` )\r\nCould someone help me to get this thing working?"},"comment":{"url":"https://api.github.com/repos/vuejs/Discussion/issues/comments/133880875","html_url":"https://github.com/vuejs/Discussion/issues/358#issuecomment-133880875","issue_url":"https://api.github.com/repos/vuejs/Discussion/issues/358","id":133880875,"user":{"login":"kayyyy","id":8193345,"avatar_url":"https://avatars.githubusercontent.com/u/8193345?v=3","gravatar_id":"","url":"https://api.github.com/users/kayyyy","html_url":"https://github.com/kayyyy","followers_url":"https://api.github.com/users/kayyyy/followers","following_url":"https://api.github.com/users/kayyyy/following{/other_user}","gists_url":"https://api.github.com/users/kayyyy/gists{/gist_id}","starred_url":"https://api.github.com/users/kayyyy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kayyyy/subscriptions","organizations_url":"https://api.github.com/users/kayyyy/orgs","repos_url":"https://api.github.com/users/kayyyy/repos","events_url":"https://api.github.com/users/kayyyy/events{/privacy}","received_events_url":"https://api.github.com/users/kayyyy/received_events","type":"User","site_admin":false},"created_at":"2015-08-23T17:30:47Z","updated_at":"2015-08-23T17:30:47Z","body":"Okay solved it with `this.$route.params.slug `"}}