{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/3533","labels_url":"https://api.github.com/repos/angular/angular/issues/3533/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/3533/comments","events_url":"https://api.github.com/repos/angular/angular/issues/3533/events","html_url":"https://github.com/angular/angular/issues/3533","id":99655816,"number":3533,"title":"Omitting / misspelling directive selector fails silently","user":{"login":"pkozlowski-opensource","id":973550,"avatar_url":"https://avatars.githubusercontent.com/u/973550?v=3","gravatar_id":"","url":"https://api.github.com/users/pkozlowski-opensource","html_url":"https://github.com/pkozlowski-opensource","followers_url":"https://api.github.com/users/pkozlowski-opensource/followers","following_url":"https://api.github.com/users/pkozlowski-opensource/following{/other_user}","gists_url":"https://api.github.com/users/pkozlowski-opensource/gists{/gist_id}","starred_url":"https://api.github.com/users/pkozlowski-opensource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkozlowski-opensource/subscriptions","organizations_url":"https://api.github.com/users/pkozlowski-opensource/orgs","repos_url":"https://api.github.com/users/pkozlowski-opensource/repos","events_url":"https://api.github.com/users/pkozlowski-opensource/events{/privacy}","received_events_url":"https://api.github.com/users/pkozlowski-opensource/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-07T14:12:40Z","updated_at":"2015-08-10T20:04:05Z","closed_at":"2015-08-10T20:04:05Z","body":"Can you quickly spot a problem?\r\n\r\n```javascript\r\nimport {Component, Directive, View, bootstrap} from 'angular2/angular2';\r\n\r\n@Directive({\r\n  slector: '[test]'\r\n})\r\nclass Test {\r\n  constructor() {\r\n     console.log('Activating Test');\r\n  }\r\n}  \r\n\r\n@Component({\r\n    selector: 'hello'\r\n})\r\n@View({\r\n    template: `<div test></div>`,\r\n    directives: [Test] \r\n})\r\nclass Hello {\r\n}\r\n\r\nbootstrap(Hello);\r\n```\r\n\r\nIt took me ~10 mins to figure out that `@Directive`'s `selector` property is misspelled, effectively removing selector from a directive. We should throw clear error message in such a case."},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/129588591","html_url":"https://github.com/angular/angular/issues/3533#issuecomment-129588591","issue_url":"https://api.github.com/repos/angular/angular/issues/3533","id":129588591,"user":{"login":"pkozlowski-opensource","id":973550,"avatar_url":"https://avatars.githubusercontent.com/u/973550?v=3","gravatar_id":"","url":"https://api.github.com/users/pkozlowski-opensource","html_url":"https://github.com/pkozlowski-opensource","followers_url":"https://api.github.com/users/pkozlowski-opensource/followers","following_url":"https://api.github.com/users/pkozlowski-opensource/following{/other_user}","gists_url":"https://api.github.com/users/pkozlowski-opensource/gists{/gist_id}","starred_url":"https://api.github.com/users/pkozlowski-opensource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkozlowski-opensource/subscriptions","organizations_url":"https://api.github.com/users/pkozlowski-opensource/orgs","repos_url":"https://api.github.com/users/pkozlowski-opensource/repos","events_url":"https://api.github.com/users/pkozlowski-opensource/events{/privacy}","received_events_url":"https://api.github.com/users/pkozlowski-opensource/received_events","type":"User","site_admin":false},"created_at":"2015-08-10T20:04:05Z","updated_at":"2015-08-10T20:04:05Z","body":"@alexeagle thnx for the update! I'm going to close this one for now and will re-test as soon as we are on 1.6. Thnx again."}}