This project was generated with Angular CLI version 16.0.5.
To reproduce the bug, run the following steps:
- Run
ng serve
to serve the project. - Open the app and inspect the button element in the app component.
- Notice that in its CSS selector there is an _ngcontent attribute on the input element.
- Run
ng build
to build the project. - Open the main[hash].js file in the
dist/
directory. - Search for the CSS selector in the app component (you can search for
input[type=search]
). - Notice that in the selector there is no _ngcontent attribute on the input element.