Angular 2 Asp.net MVC加载问题

时间:2017-05-23 08:30:38

标签: node.js asp.net-mvc visual-studio angular

有没有人知道加载我的角度2项目的原因,如下图所示。

我改变了home.component.html文件中的内容后得到了这个

如何解决? enter image description here

以下是我的home.component.html网页



<div class='panel panel-primary'>
    <div class='panel-heading'>
        Warehouse Management
    </div>
    <div class='panel-body'>
        <div class='table-responsive'>
            <!--<div style="padding-bottom:10px"><button class="btn btn-primary" (click)="addUser()">Add</button></div>-->
            <div class="alert alert-info" role="alert" *ngIf="indLoading"><img src="../../images/loading.gif" width="32" height="32" /> Loading...</div>
            <div *ngIf='warehouses && warehouses.length==0' class="alert alert-info" role="alert">No record found!</div>
            <table class='table table-striped' *ngIf='warehouses && warehouses.length'>
                <thead>
                    <tr>
                        <th>Territory Code</th>
                        <th>Warehouse Code</th>
                        <!--<th>Gender</th>-->
                        <th></th>
                    </tr>
                </thead>
                <tbody>
                    <tr *ngFor="let warehouse of warehouses">
                        <td>{{warehouse.TerritoryCode}}</td>
                        <td>{{warehouse.WarehouseCode}}</td>
                        
                        <!--<td>
                            <button title="Edit" class="btn btn-primary" (click)="editUser(user.Id)">Edit</button>
                            <button title="Delete" class="btn btn-danger" (click)="deleteUser(user.Id)">Delete</button>
                        </td>-->
                    </tr>
                </tbody>
            </table>
            <div>
            </div>
        </div>
        <div *ngIf="msg" role="alert" class="alert alert-info alert-dismissible">
            <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            <span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
            <span class="sr-only">Error:</span>
            {{msg}}
        </div>
    </div>
</div>
&#13;
&#13;
&#13;

错误: enter image description here

0 个答案:

没有答案