-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't bind to 'chart' since it isn't a known property of 'div'. #90
Comments
Can you show your app.module.ts ? |
|
Closing this, feel free to reopen! |
@superestze I got a same issue. But I can't find any chartModel here? Can you show me? |
@th0g0th please post you app.module.ts |
@cebor I'm using angular-seed. <div ([chart])="chart"></div> app.module.ts import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { APP_BASE_HREF } from '@angular/common';
import { HttpModule } from '@angular/http';
import { AppComponent } from './app.component';
import { AppRoutingModule } from './app-routing.module';
import { AboutModule } from './about/about.module';
import { HomeModule } from './home/home.module';
import { SharedModule } from './shared/shared.module';
import { ChartModule } from 'angular-highcharts';
@NgModule({
imports: [BrowserModule, HttpModule, AppRoutingModule, AboutModule, HomeModule, ChartModule, SharedModule.forRoot()],
declarations: [AppComponent],
providers: [{
provide: APP_BASE_HREF,
useValue: '<%= APP_BASE %>'
}],
bootstrap: [AppComponent]
})
export class AppModule { } system.config.js packages: {
highcharts: {
main: './highcharts.js',
defaultExtension: 'js'
},
'angular-highcharts': {
main: './angular-highcharts.js',
defaultExtension: 'js'
}
} |
Appmodule seems to be configured correct. Maybe you have to import it also in the submodule where you using it within. |
@th0g0th i see you using systemjs, please try to use |
@Cedor It’s not working. Maybe you can try using your angular-highcharts on angular-seed to easy to test. |
@th0g0th if you create a repo where this issue is reproducible i can take look at it. |
Hello, Hope this helps someone. |
use demo in html:
<div [chart]="chart"></div>
The text was updated successfully, but these errors were encountered: