What are the security principles in angular?

Below are the list of security principles in angular,

  1. We should avoid direct use of the DOM APIs.
  2. We should enable Content Security Policy (CSP) and configure your web server to return appropriate CSP HTTP headers.
  3. We should Use the offline template compiler.
  4. We should Use Server Side XSS protection.
  5. We should Use DOM Sanitizer.
  6. We should Preventing CSRF or XSRF attacks.