This article is a mirror article of machine translation, please click here to jump to the original article.

View: 9235|Reply: 0

[Angular] Angular 11 series (16) page parsing HTML source code

[Copy link]
Posted on 9/8/2020 12:04:47 PM | | | |
Angular 9 Series (1) Dynamically Loaded Components
https://www.itsvse.com/thread-9238-1-1.html

Angular 9 series (2) dynamic component transmission parameters
https://www.itsvse.com/thread-9245-1-1.html

Angular 9 series (3) subscribes to dynamic component events
https://www.itsvse.com/thread-9246-1-1.html

Angular 9 Series (IV) Custom Pipe pipelines
https://www.itsvse.com/thread-9248-1-1.html

Angular 9 Series (V) formats the amount currency format
https://www.itsvse.com/thread-9249-1-1.html

Angular 9 series (VI) calls native JS variables and methods
https://www.itsvse.com/thread-9254-1-1.html

Angular 9 series (VII) CSS-style scope
https://www.itsvse.com/thread-9264-1-1.html

Angular 9 series (VIII) updates the value of a child component by triggering an event via set
https://www.itsvse.com/thread-9267-1-1.html

Angular 9 Series (nine) #id selector applied on the page
https://www.itsvse.com/thread-9278-1-1.html

Angular 9 series (10) embeds vconsole and eruda developer debugging panels
https://www.itsvse.com/thread-9286-1-1.html

Angular 9 Series (XI) 5 Ways to Define Styles
https://www.itsvse.com/thread-9305-1-1.html

Angular 9 series (XII) generates dynamic tokens based on OTPs
https://www.itsvse.com/thread-9325-1-1.html

Angular 10 series (thirteen) introduces Baidu echarts charts
https://www.itsvse.com/thread-9347-1-1.html

Angular 11 series (XIV) production environment for debugging
https://www.itsvse.com/thread-9348-1-1.html

Angular 11 Series (XV) acquires component height and dynamically adjusts height
https://www.itsvse.com/thread-9364-1-1.html
The page needs to wrap two sentences, because I don't want to bind two variables, and I want to bind a variable to the page directly in the form of TS splicing strings and html tags in the background.

Tip: The binding content is not user-input, if it is user-input, consider the XSS security risk

html page source code:

ts source code:

Unable to achieve the effect we wanted, the html tags we wrote were translated, as shown in the image below:



Solution:

TS Code Introduction Module:

Full Code:

html page code:

The effect is as follows:



(End)





Previous:Azure DevOps 2020 (II) Azure DevOps Server Express 2020 RC2 installation tutorial
Next:TF400813: 资源不可用于匿名访问。需要进行客户端身份验证
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com