0
我與角2角總是失敗每當我試着啓動應用程序角2初始化失敗在啓動應用程序和Ctrl +加載F5
Asp.net MVC 5應用工作,但它的工作原理上刷新瀏覽器。
同樣適用於Ctrl + F5,它無法加載角度。
任何幫助,也可以知道爲什麼它不在啓動的工作原因?
App.component:
import { Component } from '@angular/core';
import { TranslateService } from 'ng2-translate';
@Component({
selector: 'my-app',
templateUrl: 'app/app.component.html'
})
export class AppComponent {
}
Layout.cshtml:
<div class="page-container">
<!-- BEGIN SIDEBAR -->
<tree-bar></tree-bar>
@*@Html.Partial("_SidebarPartial")*@
@*@Html.Partial("_SidebarTrial")*@
<!-- END SIDEBAR -->
<!-- BEGIN CONTENT -->
<div class="page-content-wrapper">
<!-- BEGIN CONTENT BODY -->
<div class="page-content">
<!-- BEGIN PAGE HEADER-->
<!-- BEGIN PAGE BAR -->
@RenderSection("pageBar", false)
<!-- END PAGE BAR -->
<!-- BEGIN PAGE TITLE-->
<div class="row">
<div class="col-md-8">
<h1 class="page-title">
@ViewBag.PageTitle
@if (!string.IsNullOrEmpty(ViewBag.PageSubTitle))
{
<br />
<small>@ViewBag.PageSubTitle</small>
}
</h1>
</div>
<div class="col-md-4">
<h1 class="page-title pull-right" ">
@RenderSection("PageOptions", false)
</h1>
</div>
</div>
<!-- END PAGE TITLE-->
<!-- END PAGE HEADER-->
@RenderBody()
<my-app></my-app>
</div>
<!-- END CONTENT BODY -->
</div>
<!-- END CONTENT -->
<!-- BEGIN QUICK SIDEBAR -->
<tenantswitching></tenantswitching>
<!-- END QUICK SIDEBAR -->
</div>
應用程序代碼將幫助你一點點 –
請張貼組件和模板代碼請 –
當然,後編輯! –