So I have created a new component, imported it and declared into AppModule, and used the appropriate selector name for the tags. But somehow the content is not showing up, what is wrong?
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';
import { HelloComponent } from "./hello/hello.component";
@NgModule({
imports: [ BrowserModule ],
declarations: [
AppComponent,
HelloComponent
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule {
}
https://plnkr.co/edit/JfBoe38MZqRlvTLB?preview
Error in console GET https://run.plnkr.co/preview/ckgj32p39001k3a6cujj3nr87/app.component.html 404
Unhandled Promise rejection: Failed to load app.component.html ; Zone: ; Task: Promise.then ; Value: Failed to load app.component.html [email protected]?main=browser:357
Error: Uncaught (in promise): Failed to load app.component.html
