-1
app.componentts.
import { Component } from '@angular/core';
import { AppComponent } from './app.component';
@Component({
selector: 'app-root',
templateUrl: 'app.component.html'
})
export class AppComponent {
title = 'frontend';
}
app.modules.ts
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
@NgModule({
declarations: [
AppComponent,
],
imports: [
BrowserModule,
AppRoutingModule
],
providers: [],
bootstrap: [AppRoutingModule]
})
export class AppModule { }
Could you post the errors displayed in the angular-cli? Along with some error (if any) of the browser console? Which version of the angular used?
– Danizavtz
I’m using angular 9 I’m starting, I’m very lost... Failed to Compile. src/app/app.module.ts:5:30 - error TS2307: Cannot find module './app.Component' or its corresponding type declarations. 5 import { Appcomponent } from './app.Component'; This is the error, I removed the Appcomponent from the import, but still gives error
– Luuana Diaas