Boa tarde,
Segui todos os passos do curso, porém quando fui testar a aplicação não apareceu a tela.. Olhando o console do Browser me deparei com o erro :
EXCEPTION: Error in ./AppComponent class AppComponent_Host - inline template:0:0 caused by: The selector "app" did not match any elements
Segue meus arquivos :
app.component.ts
import {Component} from '@angular/core'
@Component({
selector : 'app',
templateUrl : '.app/app.component.html'
})
export class AppComponent{}
app.component.html
<h1>Hello World</h1>
app.module.ts
import {NgModule} from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import {AppComponent} from './app.component';
@NgModule({
imports:[BrowserModule],
declarations:[AppComponent],
bootstrap : [AppComponent]
})
export class AppModule{}
main.ts
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app.module';
const platform = platformBrowserDynamic();
platform.bootstrapModule(AppModule);