#How to remove - " Unexpected token. A constructor, method, accessor, or property was expected. "

9 messages · Page 1 of 1 (latest)

upper aurora
#

nothing, you don't use keywords for class member declarations

tired oyster
# upper aurora nothing, you don't use keywords for class member declarations

A angular-cli project based on @angular/animations, @angular/common, @angular/compiler, @angular/core, @angular/forms, @angular/platform-browser, @angular/platform-browser-dynamic, @angular/router, core-js, rxjs, tslib, zone.js, @angular/material and @angular/cdk.

upper aurora
#

i don't see any difference

#

that's the same issue

#

you don't use any keyword for member declarations, and you can't have statements directly in the class body
remove line 16 and 34, and remove var from your declarations

tired oyster
# upper aurora i don't see any difference

A angular-cli project based on @angular/animations, @angular/common, @angular/compiler, @angular/core, @angular/forms, @angular/platform-browser, @angular/platform-browser-dynamic, @angular/router, core-js, rxjs, tslib, zone.js, @angular/material and @angular/cdk.

upper aurora
#

i don't really know what this is here, your constructor and the method you have are empty, seems like you should be doing stuff in there

tired oyster
#

I am trying to plot a line-graph using echarts library

#

I am unable to do it