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
5 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Laxmidhar SahooPosted Dec 7, 2017, 8:02 AM
Laxmidhar SahooPosted Dec 7, 2017, 8:00 AM
Dharmraj ThakurPosted Dec 7, 2017, 3:46 AM
Still not working then please check by changin
narasiman raoPosted Dec 7, 2017, 1:56 AM
Dharmraj ThakurPosted Dec 7, 2017, 12:23 AM