预期Angular 2宣言&未终止的正则表达式错误

时间:2018-05-12 09:09:34

标签: angular

我正在使用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.    }

part 1

part 2

1 个答案:

答案 0 :(得分:0)

第3行

general scroll;

顺便说一句,当您正在关注FullCalendar.min.js时,这意味着行号import { Http, Response } from "@angular/http"中的错误,而不是行号ERROR in src/app/app.component.ts(3,39)