envyN / ngx-widget-grid

Angular 2.x or in general ng-x module for dashboards
https://envyn.github.io/ngx-widget-grid
MIT License
65 stars 14 forks source link

Unexpected token '=' #34

Open Josuruma opened 4 years ago

Josuruma commented 4 years ago

[x] bug

Expected behavior

Using the example in a fresh angular app

Actual behavior

Just giving errors by using ng serve ERROR in src/app/app.component.html:3:29 - error NG5002: Parser Error: Unexpected token '=' at column 36 in [{top: 2,left: 2,height: 1,width: 1}=$event] Also crashing the complete app: src/app/app.module.ts:10:5 - error NG6001: The class 'AppComponent' is listed in the declarations of the NgModule 'AppModule', but is not a directive, a component, or a pipe. Either remove it from the NgModule's declarations, or add an appropriate Angular decorator.

Reproduction of behavior

Created a new angular project with ng new and installed ngx-widget-grid via npm. Added the module to app.module.ts and used the example.

Environment details