That's my first time with Angular, and I'm trying to put my website in prod, but when I access the site, I only get index.html with its CSS and no render of . When I try to access a route like website/home I get a Not found error ...
I've use ng build --prod and put dist content into ecowebhosting
I don't know what part of the program I need to put here so I made screen shoot of the structure:
here's my main.ts
import { enableProdMode } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app/app.module';
import { AccueilComponent } from './app/accueil/accueil.component';
import { NavBarComponent } from './app/nav-bar/nav-bar.component';
import { environment } from './environments/environment';
if (environment.production) {
enableProdMode();
}
platformBrowserDynamic().bootstrapModule(AppModule)
.catch(err => console.error(err));
If you need more code, ask me =)
Thanks for the help !!