You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
...
import{AppComponent}from'./app.component';import{AnythingComponent}from'./shared/anything.component';// <--- HERE
@NgModule({declarations: [AppComponent,AnythingComponent// <---- AND HERE],
...
4.Add anything element to app.component.html:
<h1>
{{title}}
<anything></anything><!-- HERE --></h1>
5.Run ng serve. You should see app works! Kim Jong-un. Great!
6.Now the fun part. Run production version with ng serve --prod. You will only see app works!.
WHOOT? NO ERRORS! WHERE IS MY KIM??
The text was updated successfully, but these errors were encountered:
Just read/do repro steps
1.Create fresh project with
ng new
.2.Add
anything.component.ts
insrc/app/shared
folder with the following content:3.Add it to
app.module.ts
declarations:4.Add
anything
element toapp.component.html
:5.Run
ng serve
. You should seeapp works! Kim Jong-un
. Great!6.Now the fun part. Run production version with
ng serve --prod
. You will only seeapp works!
.WHOOT? NO ERRORS! WHERE IS MY KIM??
The text was updated successfully, but these errors were encountered: