I asking my first Angular-related question. Please bear with me if it has already been answered. Hopefully, you know the answer and have time to share it. 🙏🏽
My current use case is the following:
- After building the Angular app, the default page must be
index.php(I have that currently working) - The index.php file contains a PHP logic which is required for various things. For the sake of simplicity, let's assume that the PHP logic needs to inject a special dynamic metatag in the HTML . Values for that metatag are inherited from a parent non-Angular app (a plain old-fashioned CMS).
- I am using the latest Angular version.
My current issue:
Whenever I run ng build, PHP tags in my index.php file get converted from <?php ... ?> to <--?php ... ?-->.
Questions
- Why is this happening?
- Is there any way to configure this behaviour?
Many thanks in advance. I appreciate any answers.