JavaScriptServices icon indicating copy to clipboard operation
JavaScriptServices copied to clipboard

aspnetcore spa for angular 4 template

Open kannan2106 opened this issue 9 years ago • 5 comments

is there any aspnetcore spa for angular 4 template available?

kannan2106 avatar May 19 '17 10:05 kannan2106

Yes, the current template packages (version 0.9.3) produce Angular 4 applications. Just update your template package and create a new app :)

SteveSandersonMS avatar May 19 '17 13:05 SteveSandersonMS

Nice, those this template includes AOT feature ?

Axel3232 avatar May 21 '17 17:05 Axel3232

thanks @SteveSandersonMS :)

kannan2106 avatar May 22 '17 07:05 kannan2106

@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!

SteveSandersonMS avatar May 22 '17 09:05 SteveSandersonMS

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

  • entry: {
  •         vendor: [
    
  •             '@angular/animations',
    
  •             '@angular/common',
    
  •             '@angular/compiler',
    
  •             '@angular/core',
    
  •             '@angular/forms',
    
  •             '@angular/http',
    
  •             '@angular/platform-browser',
    
  •             '@angular/platform-browser-dynamic',
    
  •             '@angular/router',
    
  •             'bootstrap',
    
  •             'bootstrap/dist/css/bootstrap.css',
    
  •             'es6-shim',
    
  •             'es6-promise',
    
  •             'event-source-polyfill',
    
  •             'jquery',
    
  •             'zone.js',
    
  •             '@ng-bootstrap/ng-bootstrap'
    
  •         ]
    
  •     },
    

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' } ]) ] };

Semm12 avatar May 31 '17 22:05 Semm12