{"action":"created","issue":{"url":"https://api.github.com/repos/vuejs/vue-router/issues/185","labels_url":"https://api.github.com/repos/vuejs/vue-router/issues/185/labels{/name}","comments_url":"https://api.github.com/repos/vuejs/vue-router/issues/185/comments","events_url":"https://api.github.com/repos/vuejs/vue-router/issues/185/events","html_url":"https://github.com/vuejs/vue-router/issues/185","id":111612038,"number":185,"title":"v-on: click : funName  not working  ","user":{"login":"chagamkamalakar","id":6966631,"avatar_url":"https://avatars.githubusercontent.com/u/6966631?v=3","gravatar_id":"","url":"https://api.github.com/users/chagamkamalakar","html_url":"https://github.com/chagamkamalakar","followers_url":"https://api.github.com/users/chagamkamalakar/followers","following_url":"https://api.github.com/users/chagamkamalakar/following{/other_user}","gists_url":"https://api.github.com/users/chagamkamalakar/gists{/gist_id}","starred_url":"https://api.github.com/users/chagamkamalakar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chagamkamalakar/subscriptions","organizations_url":"https://api.github.com/users/chagamkamalakar/orgs","repos_url":"https://api.github.com/users/chagamkamalakar/repos","events_url":"https://api.github.com/users/chagamkamalakar/events{/privacy}","received_events_url":"https://api.github.com/users/chagamkamalakar/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-15T13:05:45Z","updated_at":"2015-10-15T17:59:01Z","closed_at":"2015-10-15T17:59:01Z","body":"@yyx990803 \r\n\r\n I am trying to working with vue-router  &  < router-view>  \r\n\r\n```\r\n<template>\r\n <div>\r\n    <h1>Users</h1> \r\n      <ul class=\"nav nav-tabs\">\r\n        <li><a v-link=\"'/users/list'\">List</a></li>\r\n        <li><a v-link=\"'/users/create'\">Create</a></li>\r\n      </ul>\r\n      <br>\r\n       <a v-on=\"click: onClick\">Trigger a handler</a>\r\n       <router-view></router-view> is where the nested sub route views will appear.\r\n      // If you want the transitions to happen here you can copy the attributes on the router-view in codepen's HTML view and paste it here.\r\n      <router-view></router-view>\r\n</div>\r\n<template>\r\n<script>\r\nmodule.exports = {\r\n \r\n  methods:{\r\n    onClick : function (argument) {\r\n       alert(\"test\");\r\n    }\r\n  }\r\n}\r\n</script>\r\n```\r\nThe error for the above code\r\n\r\n```Directive v-on=\"click: onClick\" expects a function value, got undefined```"},"comment":{"url":"https://api.github.com/repos/vuejs/vue-router/issues/comments/148473258","html_url":"https://github.com/vuejs/vue-router/issues/185#issuecomment-148473258","issue_url":"https://api.github.com/repos/vuejs/vue-router/issues/185","id":148473258,"user":{"login":"yyx990803","id":499550,"avatar_url":"https://avatars.githubusercontent.com/u/499550?v=3","gravatar_id":"","url":"https://api.github.com/users/yyx990803","html_url":"https://github.com/yyx990803","followers_url":"https://api.github.com/users/yyx990803/followers","following_url":"https://api.github.com/users/yyx990803/following{/other_user}","gists_url":"https://api.github.com/users/yyx990803/gists{/gist_id}","starred_url":"https://api.github.com/users/yyx990803/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yyx990803/subscriptions","organizations_url":"https://api.github.com/users/yyx990803/orgs","repos_url":"https://api.github.com/users/yyx990803/repos","events_url":"https://api.github.com/users/yyx990803/events{/privacy}","received_events_url":"https://api.github.com/users/yyx990803/received_events","type":"User","site_admin":false},"created_at":"2015-10-15T17:59:01Z","updated_at":"2015-10-15T17:59:01Z","body":"This seems to have to do with your vueify / vue-loader build setup. You'll need to provide more information or show the full setup somewhere. Also, closing because this is unlikely related to the router."}}