{"action":"created","issue":{"url":"https://api.github.com/repos/angular/material/issues/7275","repository_url":"https://api.github.com/repos/angular/material","labels_url":"https://api.github.com/repos/angular/material/issues/7275/labels{/name}","comments_url":"https://api.github.com/repos/angular/material/issues/7275/comments","events_url":"https://api.github.com/repos/angular/material/issues/7275/events","html_url":"https://github.com/angular/material/issues/7275","id":136149734,"node_id":"MDU6SXNzdWUxMzYxNDk3MzQ=","number":7275,"title":"radio-button: Controller 'mdRadioGroup', required by directive 'mdRadioButton', can't be found","user":{"login":"Misiu","id":1741838,"node_id":"MDQ6VXNlcjE3NDE4Mzg=","avatar_url":"https://avatars0.githubusercontent.com/u/1741838?v=4","gravatar_id":"","url":"https://api.github.com/users/Misiu","html_url":"https://github.com/Misiu","followers_url":"https://api.github.com/users/Misiu/followers","following_url":"https://api.github.com/users/Misiu/following{/other_user}","gists_url":"https://api.github.com/users/Misiu/gists{/gist_id}","starred_url":"https://api.github.com/users/Misiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Misiu/subscriptions","organizations_url":"https://api.github.com/users/Misiu/orgs","repos_url":"https://api.github.com/users/Misiu/repos","events_url":"https://api.github.com/users/Misiu/events{/privacy}","received_events_url":"https://api.github.com/users/Misiu/received_events","type":"User","site_admin":false},"labels":[{"id":310908531,"node_id":"MDU6TGFiZWwzMTA5MDg1MzE=","url":"https://api.github.com/repos/angular/material/labels/P5:%20nice%20to%20have","name":"P5: nice to have","color":"fef2c0","default":false},{"id":235109221,"node_id":"MDU6TGFiZWwyMzUxMDkyMjE=","url":"https://api.github.com/repos/angular/material/labels/needs:%20investigation","name":"needs: investigation","color":"444444","default":false},{"id":110904477,"node_id":"MDU6TGFiZWwxMTA5MDQ0Nzc=","url":"https://api.github.com/repos/angular/material/labels/type:%20bug","name":"type: bug","color":"000000","default":false}],"state":"open","locked":false,"assignee":{"login":"Splaktar","id":3506071,"node_id":"MDQ6VXNlcjM1MDYwNzE=","avatar_url":"https://avatars1.githubusercontent.com/u/3506071?v=4","gravatar_id":"","url":"https://api.github.com/users/Splaktar","html_url":"https://github.com/Splaktar","followers_url":"https://api.github.com/users/Splaktar/followers","following_url":"https://api.github.com/users/Splaktar/following{/other_user}","gists_url":"https://api.github.com/users/Splaktar/gists{/gist_id}","starred_url":"https://api.github.com/users/Splaktar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Splaktar/subscriptions","organizations_url":"https://api.github.com/users/Splaktar/orgs","repos_url":"https://api.github.com/users/Splaktar/repos","events_url":"https://api.github.com/users/Splaktar/events{/privacy}","received_events_url":"https://api.github.com/users/Splaktar/received_events","type":"User","site_admin":false},"assignees":[{"login":"Splaktar","id":3506071,"node_id":"MDQ6VXNlcjM1MDYwNzE=","avatar_url":"https://avatars1.githubusercontent.com/u/3506071?v=4","gravatar_id":"","url":"https://api.github.com/users/Splaktar","html_url":"https://github.com/Splaktar","followers_url":"https://api.github.com/users/Splaktar/followers","following_url":"https://api.github.com/users/Splaktar/following{/other_user}","gists_url":"https://api.github.com/users/Splaktar/gists{/gist_id}","starred_url":"https://api.github.com/users/Splaktar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Splaktar/subscriptions","organizations_url":"https://api.github.com/users/Splaktar/orgs","repos_url":"https://api.github.com/users/Splaktar/repos","events_url":"https://api.github.com/users/Splaktar/events{/privacy}","received_events_url":"https://api.github.com/users/Splaktar/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/angular/material/milestones/11","html_url":"https://github.com/angular/material/milestone/11","labels_url":"https://api.github.com/repos/angular/material/milestones/11/labels","id":865967,"node_id":"MDk6TWlsZXN0b25lODY1OTY3","number":11,"title":"- Backlog","description":"Grouping for issues that have been reviewed and require further information before assignment to milestone is possible.","creator":{"login":"ThomasBurleson","id":210413,"node_id":"MDQ6VXNlcjIxMDQxMw==","avatar_url":"https://avatars3.githubusercontent.com/u/210413?v=4","gravatar_id":"","url":"https://api.github.com/users/ThomasBurleson","html_url":"https://github.com/ThomasBurleson","followers_url":"https://api.github.com/users/ThomasBurleson/followers","following_url":"https://api.github.com/users/ThomasBurleson/following{/other_user}","gists_url":"https://api.github.com/users/ThomasBurleson/gists{/gist_id}","starred_url":"https://api.github.com/users/ThomasBurleson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThomasBurleson/subscriptions","organizations_url":"https://api.github.com/users/ThomasBurleson/orgs","repos_url":"https://api.github.com/users/ThomasBurleson/repos","events_url":"https://api.github.com/users/ThomasBurleson/events{/privacy}","received_events_url":"https://api.github.com/users/ThomasBurleson/received_events","type":"User","site_admin":false},"open_issues":135,"closed_issues":609,"state":"open","created_at":"2014-11-14T00:54:02Z","updated_at":"2018-09-12T20:23:00Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-02-24T18:39:46Z","updated_at":"2018-09-12T20:28:44Z","closed_at":null,"author_association":"NONE","body":"I'm trying to build custom directive that uses Angular Material directive inside.\nMy idea is to have main directive that will have conditional template. In that template I'd like to use my custom directives that have Angular Material Directives inside.\n\nI've managed to create prototype of desired functionality, but I get error:\n\n> Controller 'mdRadioGroup', required by directive 'mdRadioButton', can't be found\n\nHere is my directive:\n\n```\n.directive('question', function($compile) {\n  var combo = '<div>COMBO - {{content.text}}</div>';\n  var radio = [\n    '<div>RADIO - {{content.text}}<br/>',\n    '<md-radio-group layout=\"row\" ng-model=\"content.answer\">',\n    '<md-radio-button ng-repeat=\"a in content.answers track by $index\" ng-value=\"a.text\" class=\"md-primary\">{{a.text}}</md-radio-button>',\n    '</md-radio-group>',\n    '</div>'\n  ].join('');\n  var input = [\n    '<div>INPUT - {{content.text}}<br/>',\n    '<md-input-container>',\n    '<input type=\"text\" ng-model=\"content.answer\" aria-label=\"{{content.text}}\" required md-maxlength=\"10\">',\n    '</md-input-container>',\n    '</div>'\n  ].join('');\n\n  var getTemplate = function(contentType) {\n    var template = '';\n\n    switch (contentType) {\n      case 'combo':\n        template = combo;\n        break;\n      case 'radio':\n        template = radio;\n        break;\n      case 'input':\n        template = input;\n        break;\n    }\n\n    return template;\n  }\n\n  var linker = function(scope, element, attrs) {\n\n    scope.$watch('content', function() {\n      element.html(getTemplate(scope.content.type))\n      $compile(element.contents())(scope);\n\n    });\n  }\n\n  return {\n    //require: ['^^?mdRadioGroup','^^?mdRadioButton'],\n    restrict: \"E\",\n    link: linker,\n    scope: {\n      content: '='\n    }\n  };\n})\n```\n\nI've created [this Plunker](http://plnkr.co/edit/t0HJY51Mxg3wvvWrBQgv?p=preview) to show my issue. Just click Next button two times and see error in console.\n\nI've asked this question on [StackOverflow](http://stackoverflow.com/questions/35504567/angular-material-controller-mdradiogroup-required-by-directive-mdradiobutt) but I didn't get any responses that would helped me with resolving that issue so I thought this might be a bug or (probably) I have error in my code.\n\nIf I remove md-radio-group and md-button everything works fine.\n"},"comment":{"url":"https://api.github.com/repos/angular/material/issues/comments/420786197","html_url":"https://github.com/angular/material/issues/7275#issuecomment-420786197","issue_url":"https://api.github.com/repos/angular/material/issues/7275","id":420786197,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMDc4NjE5Nw==","user":{"login":"Splaktar","id":3506071,"node_id":"MDQ6VXNlcjM1MDYwNzE=","avatar_url":"https://avatars1.githubusercontent.com/u/3506071?v=4","gravatar_id":"","url":"https://api.github.com/users/Splaktar","html_url":"https://github.com/Splaktar","followers_url":"https://api.github.com/users/Splaktar/followers","following_url":"https://api.github.com/users/Splaktar/following{/other_user}","gists_url":"https://api.github.com/users/Splaktar/gists{/gist_id}","starred_url":"https://api.github.com/users/Splaktar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Splaktar/subscriptions","organizations_url":"https://api.github.com/users/Splaktar/orgs","repos_url":"https://api.github.com/users/Splaktar/repos","events_url":"https://api.github.com/users/Splaktar/events{/privacy}","received_events_url":"https://api.github.com/users/Splaktar/received_events","type":"User","site_admin":false},"created_at":"2018-09-12T20:28:44Z","updated_at":"2018-09-12T20:28:44Z","author_association":"MEMBER","body":"I've asked an AngularJS compiler expert to look into this."}}
{"actor":{"display_login":"Splaktar"}}