is there any aspnetcore spa for angular 4 template available?
Yes, the current template packages (version 0.9.3) produce Angular 4 applications. Just update your template package and create a new app :)
Nice, those this template includes AOT feature ?
thanks @SteveSandersonMS :)
@Axel3232 No, that's something we're still looking into adding. If you find what seems like a clean and simple setup for that, please let us know!
Hi I add ng-boostrap in angular 4 spa template but i got error
Exception: Call to Node module failed with error: Prerendering timed out after 30000ms because the boot function in 'ClientApp/dist/main-server' returned a promise that did not resolve or reject. Make sure that your boot function always resolves or rejects its promise. You can change the timeout value using the 'asp-prerender-timeout' tag helper.
some help
my conf files
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
import { AppComponent } from './components/app/app.component'
import { NavMenuComponent } from './components/navmenu/navmenu.component';
import { HomeComponent } from './components/home/home.component';
import { FetchDataComponent } from './components/fetchdata/fetchdata.component';
import { CounterComponent } from './components/counter/counter.component';
import { ScrollerDirective } from './components/directive/scrool.directive';
export const sharedConfig: NgModule = {
bootstrap: [ AppComponent ],
declarations: [
AppComponent,
NavMenuComponent,
CounterComponent,
FetchDataComponent,
HomeComponent,
ScrollerDirective
],
imports: [
NgbModule.forRoot(),
RouterModule.forRoot([
{ path: '', redirectTo: 'home', pathMatch: 'full' },
{ path: 'home', component: HomeComponent },
{ path: 'counter', component: CounterComponent },
{ path: 'fetch-data', component: FetchDataComponent },
{ path: '**', redirectTo: 'home' }
])
]
};
Most helpful comment
Yes, the current template packages (version 0.9.3) produce Angular 4 applications. Just update your template package and create a new app :)