Angular Interview questions


Total available count: 96
Subject - JavaScript Frameworks
Subsubject - Angular

What are template expressions?

A template expression produces a value similar to any Javascript expression. Angular executes the expression and assigns it to a property of a binding target; the target might be an HTML element, a component, or a directive. In the property binding, a template expression appears in quotes to the right of the = symbol as in [property]="expression". In interpolation syntax, the template expression is surrounded by double curly braces. For example, in the following interpolation, the template expression is,

<h3>, welcome to Angular</h3>

The below javascript expressions are prohibited in the template expression

  • assignments (=, +=, -=, ...)
  • new
  • chaining expressions with; or,
  • increment and decrement operators (++ and --)



Next 5 interview question(s)

1
What is interpolation?
2
What is dependency injection in Angular?
3
What is the difference between constructor and ngOnInit?
4
What is angular CLI?
5
What is a data binding?