Repository navigation
Description
📚 Docs or angular.io bug report
Description
Placeholder texts (enclosed inside angle brackets - like <app-name>) inside <code-example></code-example> tags on the markdown content for angular.io do not display on browsers. Instead they are treated as opening html tags without matching closing tags.
🔬 Minimal Reproduction
What's the affected URL?
Reproduction Steps
- Open the above affected URL(s) in any browser of your choice.
- Scroll down till the paragraph which contains information about replacing
<app-name>in the provided configuration. There are two instances:- Instance 1 under Configuring serve for ES5:
You can then run the
ng servecommand with this configuration. Make sure to replace<app-name>(in"<app-name>:build:es5") with the actual name of the app, as it appears underprojectsinangular.json. For example, if your app name ismyAngularAppthe config will become"browserTarget": "myAngularApp:build:es5".- Instance 2 Under Configuring the e2e command:
You can then run the
ng e2ecommand with this configuration. Make sure to replace<app-name>(in"<app-name>:serve:es5") with the actual name of the app, as it appears underprojectsinangular.json. For example, if your app name ismyAngularAppthe config will become"devServerTarget": "myAngularApp:serve:es5". - Check the provided configuration above this paragraph for instances of
<app-name>.
Expected Behavior
I was hoping to find <app-name> somewhere in the provided configuration.
Actual Behavior
I can NOT find any instances of <app-name> in the provided configuration.
📷Screenshot
Here is the screenshot for Configuring serve for ES5 section:
And here is the screenshot for Configuring the e2e command section:
🌍 Your Environment
Browser info
This issue does NOT seem to be browser specific - it is reproducible in all of the following browsers which I have access to:
- Device: Laptop
- Operating System: Microsoft Windows 10 (version 1909)
- Browsers:
- Google Chrome 78.0.3904.87 (Official Build) (64-bit)
- Microsoft Edge 44.18362.449.0 (with EdgeHTML 18.18363)
- Mozilla Firefox 71.0b7 (64-bit)
Anything else relevant?
Tracing back the commit logs and older issues, I believe this problem was introduced in commit 9bbe67f which is part of PR #32210 meant for fixing documentation issue #32199.


Activity
akaustav commentedon Nov 6, 2019
Tagging folks who (in my opinion) might know more about this issue:
master[-]Placeholder texts in code examples of angular.io markdown content does not display in the browser[/-][+]Placeholder texts in code examples of angular.io markdown content do not display in the browser[/+]santoshyadavdev commentedon Nov 6, 2019
Hi @akaustav ,
Let me take a look.
santoshyadavdev commentedon Nov 6, 2019
I have made one small change looks like it is ignoring <> brackets, will update once a preview is available,
docs: app-name not rendering on browser (#33613)
angular-automatic-lock-bot commentedon Dec 8, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.