{"action":"created","issue":{"url":"https://api.github.com/repos/TheLarkInn/angular2-template-loader/issues/44","repository_url":"https://api.github.com/repos/TheLarkInn/angular2-template-loader","labels_url":"https://api.github.com/repos/TheLarkInn/angular2-template-loader/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/TheLarkInn/angular2-template-loader/issues/44/comments","events_url":"https://api.github.com/repos/TheLarkInn/angular2-template-loader/issues/44/events","html_url":"https://github.com/TheLarkInn/angular2-template-loader/pull/44","id":193623200,"number":44,"title":"Fix templateUrl regexp for the single line component decorator","user":{"login":"maksim-tolo","id":11413965,"avatar_url":"https://avatars.githubusercontent.com/u/11413965?v=3","gravatar_id":"","url":"https://api.github.com/users/maksim-tolo","html_url":"https://github.com/maksim-tolo","followers_url":"https://api.github.com/users/maksim-tolo/followers","following_url":"https://api.github.com/users/maksim-tolo/following{/other_user}","gists_url":"https://api.github.com/users/maksim-tolo/gists{/gist_id}","starred_url":"https://api.github.com/users/maksim-tolo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maksim-tolo/subscriptions","organizations_url":"https://api.github.com/users/maksim-tolo/orgs","repos_url":"https://api.github.com/users/maksim-tolo/repos","events_url":"https://api.github.com/users/maksim-tolo/events{/privacy}","received_events_url":"https://api.github.com/users/maksim-tolo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-12-05T22:04:24Z","updated_at":"2017-02-06T22:32:31Z","closed_at":"2017-01-16T23:39:53Z","pull_request":{"url":"https://api.github.com/repos/TheLarkInn/angular2-template-loader/pulls/44","html_url":"https://github.com/TheLarkInn/angular2-template-loader/pull/44","diff_url":"https://github.com/TheLarkInn/angular2-template-loader/pull/44.diff","patch_url":"https://github.com/TheLarkInn/angular2-template-loader/pull/44.patch"},"body":"I have found that if you want to pass parameters to the @Component decorator in a single line you will get the following error:\r\n```javascript\r\nUncaught ReferenceError: require is not defined\r\n```\r\nIt's caused by incorrect templateUrlRegex which converts\r\n```javascript\r\n@Component({selector: 'my-app', templateUrl: './app.component.html', styleUrls: ['./app.component.css']})\r\nexport class AppComponent { };\r\n```\r\nto the following code:\r\n```javascript\r\n@Component({selector: 'my-app', template: require('./app.component.html'), styles: [require(require('./app.component.css'))]})\r\nexport class AppComponent { };\r\n```"},"comment":{"url":"https://api.github.com/repos/TheLarkInn/angular2-template-loader/issues/comments/277836105","html_url":"https://github.com/TheLarkInn/angular2-template-loader/pull/44#issuecomment-277836105","issue_url":"https://api.github.com/repos/TheLarkInn/angular2-template-loader/issues/44","id":277836105,"user":{"login":"MarkPieszak","id":2574412,"avatar_url":"https://avatars.githubusercontent.com/u/2574412?v=3","gravatar_id":"","url":"https://api.github.com/users/MarkPieszak","html_url":"https://github.com/MarkPieszak","followers_url":"https://api.github.com/users/MarkPieszak/followers","following_url":"https://api.github.com/users/MarkPieszak/following{/other_user}","gists_url":"https://api.github.com/users/MarkPieszak/gists{/gist_id}","starred_url":"https://api.github.com/users/MarkPieszak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarkPieszak/subscriptions","organizations_url":"https://api.github.com/users/MarkPieszak/orgs","repos_url":"https://api.github.com/users/MarkPieszak/repos","events_url":"https://api.github.com/users/MarkPieszak/events{/privacy}","received_events_url":"https://api.github.com/users/MarkPieszak/received_events","type":"User","site_admin":false},"created_at":"2017-02-06T22:32:31Z","updated_at":"2017-02-06T22:32:31Z","body":"@TheLarkInn Looks like this Regex messed up multi-line Component declarations, v0.6.1 has issues popping up from a bunch of users.\r\nMaybe we can revert for now, release a 0.6.2 to fix it for now?\r\n\r\n#50 \r\nhttps://github.com/aspnet/JavaScriptServices/issues/645\r\n"}}
{"actor":{"display_login":"MarkPieszak"}}