how to fix Error occurs in the template of component AppComponent in Angular 10

  angular

using Angular 10 and I found following error in the console here
templateUrl: './app.component.html',
Error occurs in the template of component AppComponent.

my app.component.ts file is

import { Component } from '@angular/core';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
 
  styleUrls: ['./app.component.css']
})
export class AppComponent {
  title = 'task-yt';
}

what is this error how could I fix this problem here?

Source: Angular Questions

One Reply to “how to fix Error occurs in the template of component AppComponent in Angular 10”

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.