0
sir can show the root folder name
and then subfolders
0
sir change from '.app/app.component.html'
to
'component.html'
This may work
0
Replace Your main.ts with following code...
- import { enableProdMode } from '@angular/core';
- import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
-
- import { AppModule } from './app/app.module';
-
- platformBrowserDynamic().bootstrapModule(AppModule);
Still not working then please check by changin <base href=""> of index.html
0
App.module.ts code as follows
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Main.ts code as follows
import { enableProdMode } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app/app.module';
import { environment } from './environments/environment';
if (environment.production) {
enableProdMode();
}
platformBrowserDynamic().bootstrapModule(AppModule)
.catch(err => console.log(err));
i send the code of main.ts and app.module.ts.
0
Code is correct, there is no any mistake. please show your main.ts, appModule.ts and