Title: 3 party Plugins not working · Issue #2760 · angular/angular-cli · GitHub
Open Graph Title: 3 party Plugins not working · Issue #2760 · angular/angular-cli
X Title: 3 party Plugins not working · Issue #2760 · angular/angular-cli
Description: Please provide us with the following information: OS? Windows 10 Versions. angular-cli: 1.0.0-beta.17 Repro steps. ng new testApp The log given by the failure. inline template:6:4 caused by: jQuery(...).find(...).knob is not a function a...
Open Graph Description: Please provide us with the following information: OS? Windows 10 Versions. angular-cli: 1.0.0-beta.17 Repro steps. ng new testApp The log given by the failure. inline template:6:4 caused by: jQuery...
X Description: Please provide us with the following information: OS? Windows 10 Versions. angular-cli: 1.0.0-beta.17 Repro steps. ng new testApp The log given by the failure. inline template:6:4 caused by: jQuery...
Opengraph URL: https://github.com/angular/angular-cli/issues/2760
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"3 party Plugins not working","articleBody":"> ## Please provide us with the following information:\n### OS?\n\n> Windows 10\n### Versions.\n\n> angular-cli: 1.0.0-beta.17\n### Repro steps.\n\n> ng new testApp\n### The log given by the failure.\n\n> inline template:6:4 caused by: jQuery(...).find(...).knob is not a function\n> at resolvePromise (zone.js:429)\n> at zone.js:406\n> at ZoneDelegate.invoke (zone.js:203)\n> at Object.onInvoke (ng_zone_impl.js:43)\n> at ZoneDelegate.invoke (zone.js:202)\n> at Zone.run (zone.js:96)\n> at zone.js:462\n> at ZoneDelegate.invokeTask (zone.js:236)\n> at Object.onInvokeTask (ng_zone_impl.js:34)\n> at ZoneDelegate.invokeTask (zone.js:235)\n### Mention any other details that might be useful.\n\nhttp://plugins.jquery.com/knob/\nhttps://github.com/seiyria/bootstrap-slider\n\n> **package.json**\n> \"dependencies\": {\n> \"@angular/common\": \"~2.0.0\",\n> \"@angular/compiler\": \"~2.0.0\",\n> \"@angular/core\": \"~2.0.0\",\n> \"@angular/forms\": \"~2.0.0\",\n> \"@angular/http\": \"~2.0.0\",\n> \"@angular/platform-browser\": \"~2.0.0\",\n> \"@angular/platform-browser-dynamic\": \"~2.0.0\",\n> \"@angular/router\": \"~3.0.0\", \n> \"bootstrap\": \"^3.3.7\",\n> \"bootstrap-slider\": \"^9.2.0\",\n> \"core-js\": \"^2.4.1\",\n> \"font-awesome\": \"^4.6.3\", \n> \"jquery\": \"^3.1.1\",\n> \"jquery-knob\": \"^1.2.11\", \n> \"moment\": \"^2.15.1\", \n> \"rxjs\": \"5.0.0-beta.12\",\n> \"tether\": \"^1.3.7\",\n> \"ts-helpers\": \"^1.1.1\",\n> \"zone.js\": \"^0.6.23\"\n> }\n\nI add blow in my angular-cli.json file:\n\"scripts\": [\n \"../node_modules/jquery/dist/jquery.js\", \n \"../node_modules/tether/dist/js/tether.js\",\n \"../node_modules/moment/moment.js\",\n \"../node_modules/bootstrap/dist/js/bootstrap.js\", \n \"../node_modules/bootstrap-slider/dist/bootstrap-slider.js\",\n \"../node_modules/jquery-knob/dist/jquery.knob.min.js\"\n ],\n\n**> Slider component file**\n\nimport { Component, AfterViewInit, ElementRef, Inject } from '@angular/core';\n\ndeclare var jQuery: any;\n@Component({\n selector: 'app-slider',\n template: `\u003cdiv id=\"sliderUI\">\u003c/div>`\n})\nexport class SliderComponent implements AfterViewInit {\n elementRef: ElementRef;\n slideValue: number = 0; \n constructor( @Inject(ElementRef) elementRef: ElementRef) {\n this.elementRef = elementRef;\n } \n ngAfterViewInit() { \n jQuery(this.elementRef.nativeElement).find(\"#sliderUI\").slider(); \n }\n}\n\n**> Knob component file**\n\nimport { Component, AfterViewInit, ElementRef, Inject, Input, Output, EventEmitter } from '@angular/core';\ndeclare var jQuery: any;\n@Component({\n selector: 'app-knob',\n template: `\u003cinput type=\"text\" id=\"knob\" class=\"dial\" value=\"25\" data-width=\"180\" min=\"0\" max=\"100\" data-displayinput=\"true\" data-thickness=\".05\">`,\n})\nexport class KnobComponent implements AfterViewInit { \n private elementRef: ElementRef; \n constructor( @Inject(ElementRef) elementRef: ElementRef) {\n this.elementRef = elementRef;\n }\n ngAfterViewInit() { \n jQuery(this.elementRef.nativeElement).find(\"#knob\").knob(); \n }\n}\n\n> ---\n> \n> **> same example works in Angular2 project but not in Angular-CLI**\n","author":{"url":"https://github.com/RamitAnandSharma","@type":"Person","name":"RamitAnandSharma"},"datePublished":"2016-10-18T10:49:44Z","url":"https://github.com/angular/angular-cli/issues/2760"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:bbda9d43-a9c5-f8f0-eca5-2b2c55141c73 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8466:382318:7D3644:9D723B:6B0211ED |
| html-safe-nonce | a69b453a44a1cb3e784a897abc0186281572d8d6d2f2dee22b441c70ebab6569 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NDY2OjM4MjMxODo3RDM2NDQ6OUQ3MjNCOjZCMDIxMUVEIiwidmlzaXRvcl9pZCI6IjYyODc0NjQ1NTU1NDMxMzg3OTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 872ec67b12b1f029008531d3be936b9b04fb0736c92aad9233991cf4c77f0901 |
| hovercard-subject-tag | issue:183652175 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/2760/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9f0a8ba06ee66e6fe6e8ca67722b6f8f0eecafff9c79a7282c378518cb30868a/angular/angular-cli/issues/2760 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9f0a8ba06ee66e6fe6e8ca67722b6f8f0eecafff9c79a7282c378518cb30868a/angular/angular-cli/issues/2760 |
| og:image:alt | Please provide us with the following information: OS? Windows 10 Versions. angular-cli: 1.0.0-beta.17 Repro steps. ng new testApp The log given by the failure. inline template:6:4 caused by: jQuery... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | RamitAnandSharma |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width