File structure as follows
->src
->app
->appcomponent.css
->appcomponent.html
->appcomponent.spec.ts
->appcomponent.ts
i written the below code in visual studio code
App.component.ts code as follows
import { Component } from '@angular/core';
@Component({
selector: 'my-app',
templateUrl: 'app/app.component.html'
})
export class AppComponent {
appTitle: string = 'Welcome';
appStatus: boolean = true;
}
app.component.html code as follows
{{appTitle}} Tutorialspoint
when i run in browser error as follows
ERROR in ./src/app/app.componenet.ts
Module not found: Error cant resolve '.app/app.component.html' in 'C:\users\1900055\tour\src\app
resolve './app/app.component.html' in 'C:\users\1900055\tour\src\app'
using description file: C:\users\1900055\package.json
Field browser does not contain a valid false configuration.
what is the mistake in above code.
please help me

Dharmraj ThakurRank #577 · 4.2K reputationPosted Dec 6, 2017, 7:23 PM EST
narasiman raoRank #2,780 · 507 reputationPosted Dec 6, 2017, 8:56 PM EST
Dharmraj ThakurRank #577 · 4.2K reputationPosted Dec 6, 2017, 10:46 PM EST
Still not working then please check by changin
Laxmidhar SahooRank #383 · 6.6K reputationPosted Dec 7, 2017, 3:00 AM EST
Laxmidhar SahooRank #383 · 6.6K reputationPosted Dec 7, 2017, 3:02 AM EST