{"action":"closed","issue":{"url":"https://api.github.com/repos/ngParty/ng-metadata/issues/7","labels_url":"https://api.github.com/repos/ngParty/ng-metadata/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/ngParty/ng-metadata/issues/7/comments","events_url":"https://api.github.com/repos/ngParty/ng-metadata/issues/7/events","html_url":"https://github.com/ngParty/ng-metadata/issues/7","id":109660378,"number":7,"title":"implement makeSelector utility function","user":{"login":"Hotell","id":1223799,"avatar_url":"https://avatars.githubusercontent.com/u/1223799?v=3","gravatar_id":"","url":"https://api.github.com/users/Hotell","html_url":"https://github.com/Hotell","followers_url":"https://api.github.com/users/Hotell/followers","following_url":"https://api.github.com/users/Hotell/following{/other_user}","gists_url":"https://api.github.com/users/Hotell/gists{/gist_id}","starred_url":"https://api.github.com/users/Hotell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hotell/subscriptions","organizations_url":"https://api.github.com/users/Hotell/orgs","repos_url":"https://api.github.com/users/Hotell/repos","events_url":"https://api.github.com/users/Hotell/events{/privacy}","received_events_url":"https://api.github.com/users/Hotell/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ngParty/ng-metadata/labels/feature","name":"feature","color":"009800"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-04T03:21:05Z","updated_at":"2015-11-07T18:21:10Z","closed_at":"2015-11-07T18:21:10Z","body":"just pure function which will create correct directive name from selector string\r\n\r\n```typescript\r\n@Component({selector:'foo-bar'})\r\n@View({template:`<h1>Hello</h1>`})\r\nClass FooBar{\r\n}\r\n\r\n// when called\r\nimport {makeSelector} from 'ng-metadata';\r\nconst directiveName = makeSelector(FooBar);\r\n\r\nexpect(directiveName).to.equal('fooBar');\r\n```"}}