San*_*isy -1 asp.net-mvc visual-studio asp.net-core angular
我已经将asp.net core 1.0的依赖关系更新为asp.net core 1.1。使用nuget管理器。我已更新了nuget更新中上传提及的所有列表。现在,我收到错误TS1128 Build:Declaration或期望的语句。我,有一些谷歌,发现我正在使用旧的类型脚本。我已经从此链接https://blogs.msdn.microsoft.com/typescript/2016/09/22/announcing安装了最新版本的类型脚本-typescript-2-0 /
Visual Studio不断向我显示错误。如何在角度2中解决此问题。
更新后,在此行代码中出现错误才可以。
LoadMarketItem(page : number) {
this._pagination = [];
this.DashBoardservice.GetMarketListCall(page).subscribe(
data => {
this.listMarket = data;
for(var i = 1; i <= this.listMarket.totalPage; i++){
this._pagination.push(new PaginationViewModel(i));
}, --> getting errror here
err => { console.log(err); });
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2359 次 |
| 最近记录: |