{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/JavaScriptServices/issues/464","repository_url":"https://api.github.com/repos/aspnet/JavaScriptServices","labels_url":"https://api.github.com/repos/aspnet/JavaScriptServices/issues/464/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/JavaScriptServices/issues/464/comments","events_url":"https://api.github.com/repos/aspnet/JavaScriptServices/issues/464/events","html_url":"https://github.com/aspnet/JavaScriptServices/issues/464","id":191786227,"number":464,"title":"Angular2 - Problem running jquery, $ is not defined","user":{"login":"AndrewKralovec","id":6210337,"avatar_url":"https://avatars.githubusercontent.com/u/6210337?v=3","gravatar_id":"","url":"https://api.github.com/users/AndrewKralovec","html_url":"https://github.com/AndrewKralovec","followers_url":"https://api.github.com/users/AndrewKralovec/followers","following_url":"https://api.github.com/users/AndrewKralovec/following{/other_user}","gists_url":"https://api.github.com/users/AndrewKralovec/gists{/gist_id}","starred_url":"https://api.github.com/users/AndrewKralovec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndrewKralovec/subscriptions","organizations_url":"https://api.github.com/users/AndrewKralovec/orgs","repos_url":"https://api.github.com/users/AndrewKralovec/repos","events_url":"https://api.github.com/users/AndrewKralovec/events{/privacy}","received_events_url":"https://api.github.com/users/AndrewKralovec/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-11-26T04:30:30Z","updated_at":"2016-12-07T09:58:36Z","closed_at":"2016-11-28T11:09:05Z","body":"I'm trying to use jquery in my app. Previoulsy in rc-4 i would just declare var $: any; and then call it on after OnInit, but when i try to do this in my rc-5 build, it throws  $ is not defined. \r\n\r\nComponent\r\n```\r\nimport { Component, OnInit } from '@angular/core';\r\ndeclare var $: any;\r\n \r\n @Component({\r\n    selector: 'nav-menu',\r\n    templateUrl: './navmenu.component.html',\r\n    styleUrls: ['./navmenu.component.css']\r\n})\r\nexport class NavMenuComponent implements OnInit {\r\n    ngOnInit() {\r\n        // Initialize collapse button\r\n        $(\".button-collapse\").sideNav();\r\n    }\r\n}\r\n\r\n```\r\n\r\nError \r\n```\r\n\r\nEXCEPTION: $ is not defined  vendor.js:5364:14\r\nORIGINAL STACKTRACE:  vendor.js:5369:18\r\n[30]/NavMenuComponent</NavMenuComponent.prototype.ngOnInit@http://localhost:5000/dist/0.9ef51c72ff32ccd5ee38.hot-update.js:71:10\r\nanonymous/_View_AppComponent0.prototype.detectChangesInternal@AppComponent.ngfactory.js:86:58\r\nvendor_e1c95acbfa6e50db68d4</</</AppView</AppView.prototype.detectChanges@http://localhost:5000/dist/vendor.js?v=FG8DMO6mAWOeL29rrZABZrd79JSnjdqetNbUsSmBST0:11464:14\r\n```"},"comment":{"url":"https://api.github.com/repos/aspnet/JavaScriptServices/issues/comments/265404927","html_url":"https://github.com/aspnet/JavaScriptServices/issues/464#issuecomment-265404927","issue_url":"https://api.github.com/repos/aspnet/JavaScriptServices/issues/464","id":265404927,"user":{"login":"SteveSandersonMS","id":1101362,"avatar_url":"https://avatars.githubusercontent.com/u/1101362?v=3","gravatar_id":"","url":"https://api.github.com/users/SteveSandersonMS","html_url":"https://github.com/SteveSandersonMS","followers_url":"https://api.github.com/users/SteveSandersonMS/followers","following_url":"https://api.github.com/users/SteveSandersonMS/following{/other_user}","gists_url":"https://api.github.com/users/SteveSandersonMS/gists{/gist_id}","starred_url":"https://api.github.com/users/SteveSandersonMS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SteveSandersonMS/subscriptions","organizations_url":"https://api.github.com/users/SteveSandersonMS/orgs","repos_url":"https://api.github.com/users/SteveSandersonMS/repos","events_url":"https://api.github.com/users/SteveSandersonMS/events{/privacy}","received_events_url":"https://api.github.com/users/SteveSandersonMS/received_events","type":"User","site_admin":false},"created_at":"2016-12-07T09:58:36Z","updated_at":"2016-12-07T09:58:36Z","body":"@AndrewKralovec You can certainly do that if you want. It just means it wouldn't be part of your Webpack build pipeline, so you wouldn't automatically get the bundling/minification/multiversioning/etc."}}
{"actor":{"display_login":"SteveSandersonMS"}}