我正在使用Angular 2.当我运行代码时会出现此错误:
ERROR in src/app/app.component.ts(3,31): error TS1109: Expression expected.
src/app/app.component.ts(3,39): error TS1146: Declaration expected.
src/app/app.component.ts(3,40): error TS1161: Unterminated regular expression li
app.component.ts
34. onSubmit({value,valid}: {value:Roomsearch, valid:boolean}){
35. this.getAll()
36. .subscribe(
37. rooms => this.rooms = rooms,
38. err => {
39. console.log(err);
40. }
41. );
42. }
答案 0 :(得分:0)
第3行
general scroll
;
顺便说一句,当您正在关注FullCalendar.min.js
时,这意味着行号import { Http, Response } from "@angular/http"
中的错误,而不是行号ERROR in src/app/app.component.ts(3,39)
。