Difference between SingleQuote and Double Quote in Angular

  • Single Quote
    • Used to represent a sandalone value
    • Usually used to represent
    • If ‘1 + 1’ is written in html then it wil l printed as 1 + 1 only
  • Double Quote
    • Used to represent dynamic value
    • The text present inside double quotes is considerd as a variable or an expression and angular tries to evaluate it
    • If ” 1 + 1″ is written then it will print it out as 2

Leave a Comment