{"action":"created","issue":{"url":"https://api.github.com/repos/angular/router/issues/126","labels_url":"https://api.github.com/repos/angular/router/issues/126/labels{/name}","comments_url":"https://api.github.com/repos/angular/router/issues/126/comments","events_url":"https://api.github.com/repos/angular/router/issues/126/events","html_url":"https://github.com/angular/router/issues/126","id":58443488,"number":126,"title":"angular-material (mb-button) and router-link directive use case","user":{"login":"hlobil","id":484499,"avatar_url":"https://avatars.githubusercontent.com/u/484499?v=3","gravatar_id":"","url":"https://api.github.com/users/hlobil","html_url":"https://github.com/hlobil","followers_url":"https://api.github.com/users/hlobil/followers","following_url":"https://api.github.com/users/hlobil/following{/other_user}","gists_url":"https://api.github.com/users/hlobil/gists{/gist_id}","starred_url":"https://api.github.com/users/hlobil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hlobil/subscriptions","organizations_url":"https://api.github.com/users/hlobil/orgs","repos_url":"https://api.github.com/users/hlobil/repos","events_url":"https://api.github.com/users/hlobil/events{/privacy}","received_events_url":"https://api.github.com/users/hlobil/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-21T05:14:13Z","updated_at":"2015-03-15T14:16:19Z","closed_at":null,"body":"I tried to use angular-material [md-button](https://material.angularjs.org/#/api/material.components.button/directive/mdButton) directive with router-link directive. \r\n\r\nI started with the phone\r\n``` html\r\n<a ng-link=\"phoneList\">Phone list</a>\r\n```\r\nBut when I add router-link to angular-materials [md-button](https://material.angularjs.org/#/api/material.components.button/directive/mdButton) directive it works only sometimes. \r\n```html\r\n<md-button ng-link=\"phoneList\" class=\"md-raised\">Phone list</md-button>\r\n```\r\n\r\nAny suggestions? \r\n\r\nFew questions about router-link that could be added to documentation.\r\n\r\n1) Can we generate url based on component name inside the controller?\r\n2) Should router-link with no property specified default to base url?"},"comment":{"url":"https://api.github.com/repos/angular/router/issues/comments/81024418","html_url":"https://github.com/angular/router/issues/126#issuecomment-81024418","issue_url":"https://api.github.com/repos/angular/router/issues/126","id":81024418,"user":{"login":"krimple","id":4246,"avatar_url":"https://avatars.githubusercontent.com/u/4246?v=3","gravatar_id":"","url":"https://api.github.com/users/krimple","html_url":"https://github.com/krimple","followers_url":"https://api.github.com/users/krimple/followers","following_url":"https://api.github.com/users/krimple/following{/other_user}","gists_url":"https://api.github.com/users/krimple/gists{/gist_id}","starred_url":"https://api.github.com/users/krimple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krimple/subscriptions","organizations_url":"https://api.github.com/users/krimple/orgs","repos_url":"https://api.github.com/users/krimple/repos","events_url":"https://api.github.com/users/krimple/events{/privacy}","received_events_url":"https://api.github.com/users/krimple/received_events","type":"User","site_admin":false},"created_at":"2015-03-15T14:16:19Z","updated_at":"2015-03-15T14:16:19Z","body":"I haven't gotten it to work at all in 0.40...  Is it because md-button needs an ng-click, or because ng-link needs to be attached to a button? Seems like we need a router click event directive. I see #1 as useful but not something I'd want to have to know."}}