{"action":"created","issue":{"url":"https://api.github.com/repos/gevgeny/angular2-highcharts/issues/101","repository_url":"https://api.github.com/repos/gevgeny/angular2-highcharts","labels_url":"https://api.github.com/repos/gevgeny/angular2-highcharts/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/gevgeny/angular2-highcharts/issues/101/comments","events_url":"https://api.github.com/repos/gevgeny/angular2-highcharts/issues/101/events","html_url":"https://github.com/gevgeny/angular2-highcharts/issues/101","id":186264018,"number":101,"title":"Highstock on angular cli","user":{"login":"koralu","id":13848098,"avatar_url":"https://avatars.githubusercontent.com/u/13848098?v=3","gravatar_id":"","url":"https://api.github.com/users/koralu","html_url":"https://github.com/koralu","followers_url":"https://api.github.com/users/koralu/followers","following_url":"https://api.github.com/users/koralu/following{/other_user}","gists_url":"https://api.github.com/users/koralu/gists{/gist_id}","starred_url":"https://api.github.com/users/koralu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koralu/subscriptions","organizations_url":"https://api.github.com/users/koralu/orgs","repos_url":"https://api.github.com/users/koralu/repos","events_url":"https://api.github.com/users/koralu/events{/privacy}","received_events_url":"https://api.github.com/users/koralu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-10-31T11:43:51Z","updated_at":"2016-11-01T17:33:23Z","closed_at":"2016-11-01T17:33:23Z","body":"I try to implement highstock in angular cli but it seems it doesn't work. The simple charts works fine but with highstock I get the error-  \"StockChart is unknown chart type\"\r\n\r\n**app.commponent.ts**\r\n`import { Component } from '@angular/core';\r\nimport {Jsonp} from '@angular/http';\r\n\r\n\r\n@Component({\r\n  selector: 'app-root',\r\n    styles: [`\r\n      chart {\r\n        display: block;\r\n      }\r\n    `],\r\n    template: `<chart type=\"StockChart\" [options]=\"options\"></chart>`\r\n})\r\nexport class AppComponent {\r\n    constructor(jsonp : Jsonp) {\r\n        jsonp.request('https://www.highcharts.com/samples/data/jsonp.php?filename=aapl-c.json&callback=JSONP_CALLBACK').subscribe(res => {\r\n            this.options = {\r\n                title : { text : 'AAPL Stock Price' },\r\n                series : [{\r\n                    name : 'AAPL',\r\n                    data : res.json(),\r\n                    tooltip: {\r\n                        valueDecimals: 2\r\n                    }\r\n                }]\r\n            };\r\n        });\r\n    }\r\n    options: Object;\r\n}`\r\n\r\n**app.module.ts**\r\n`import { BrowserModule } from '@angular/platform-browser';\r\nimport { NgModule } from '@angular/core';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { HttpModule,Jsonp,JsonpModule } from '@angular/http';\r\nimport { ChartModule } from 'angular2-highcharts';\r\nimport { AppComponent } from './app.component';\r\n\r\n@NgModule({\r\n  declarations: [\r\n    AppComponent\r\n  ],\r\n  imports: [\r\n    BrowserModule,\r\n    FormsModule,\r\n    ChartModule,\r\n    JsonpModule,\r\n    HttpModule\r\n  ],\r\n  providers: [],\r\n  bootstrap: [AppComponent]\r\n})\r\nexport class AppModule { }`"},"comment":{"url":"https://api.github.com/repos/gevgeny/angular2-highcharts/issues/comments/257633848","html_url":"https://github.com/gevgeny/angular2-highcharts/issues/101#issuecomment-257633848","issue_url":"https://api.github.com/repos/gevgeny/angular2-highcharts/issues/101","id":257633848,"user":{"login":"gevgeny","id":1986803,"avatar_url":"https://avatars.githubusercontent.com/u/1986803?v=3","gravatar_id":"","url":"https://api.github.com/users/gevgeny","html_url":"https://github.com/gevgeny","followers_url":"https://api.github.com/users/gevgeny/followers","following_url":"https://api.github.com/users/gevgeny/following{/other_user}","gists_url":"https://api.github.com/users/gevgeny/gists{/gist_id}","starred_url":"https://api.github.com/users/gevgeny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gevgeny/subscriptions","organizations_url":"https://api.github.com/users/gevgeny/orgs","repos_url":"https://api.github.com/users/gevgeny/repos","events_url":"https://api.github.com/users/gevgeny/events{/privacy}","received_events_url":"https://api.github.com/users/gevgeny/received_events","type":"User","site_admin":false},"created_at":"2016-11-01T17:33:23Z","updated_at":"2016-11-01T17:33:23Z","body":"i have not use angular2 CLI. So only thing i can help you with is direct webpack or systemjs config. Which was mentioned in my first comment."}}
{"actor":{"display_login":"gevgeny"}}