2017-10-22 21 views
0

私は、製品の形で2つの選択している:私の問題は、私は同じにナビゲートしたい更新後角度4 ERR_INCOMPLETE_CHUNK_ENCODING

<select *ngIf="categories$ | async as categories" 
    (change)="categoryChange(category.value)" 
    #category="ngModel" 
    [(ngModel)]="product.categoryId" 
    name="categoryId" 
    id="categories" 
    class="form-control"> 

<select 
    *ngIf="subCategories$ | async as subCategories" 
    #subCategory="ngModel" 
    [(ngModel)]="product.subCategoryId" 
    name="subCategoryId" 
    id="subCategories" 
    class="form-control"> 

categoryChange

categoryChange(id: number) 
{ 
    this.subCategories$ = this._subCategoriesService.getSubCategories(id) 
} 

です形態はproduct.idとなります。

save(product: Product) 
{  
    let result$ = (this.productId) 
       ? this._productService.update(this.productId, product) 
       : this._productService.create(product); 

    result$.subscribe(p => 
    { 
     this._router.navigate(['/admin/product/', p.id]) 
    }); 
} 

しかし、save()をカテゴリに変更しないで呼び出すと、エラーが発生する理由はわかりません。net::ERR_INCOMPLETE_CHUCKED_ENCODINGそれはまだ動作し、変更は保存されます、私はエラーでちょうど迷惑で、私は理由を知りたいです。誰かがこれを説明できますか?

答えて

0

[OK]を今朝もう一度dotnet watch runに実行していました。これはdotnet watch runの共通テーマのようです。毎回、それは詰まって何かを更新しません。遅刻しないでください;)