Login
Remember
Register
Ask a Question
What are the various security contexts in Angular?
0
votes
asked
Sep 17, 2023
in
Angular
by
DavidAnderson
What are the various security contexts in Angular?
angularjs-interview-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Sep 17, 2023
by
DavidAnderson
Angular defines the following security contexts for sanitization,
HTML:
It is used when interpreting a value as HTML such as binding to innerHtml.
Style:
It is used when binding CSS into the style property.
URL:
It is used for URL properties such as
<a href>
.
Resource URL:
It is a URL that will be loaded and executed as code such as
<script src>
.
...