NG Interview Set I - Pipes Questions Flashcards
NG Interview Set I - Pipes Questions
1
Q
What is a pure pipe?
A
- A pipe that is only executed when Angular detects a pure change to the input value (e.g. new primitive object or new object reference)
2
Q
What is an impure pipe?
A
- A pipe that is executed during every component change detection cycle (i.e., often – every keystroke, mouse move)
3
Q
What is an async pipe?
A
- An impure pipe that accepts a promise or observable as input and eventually returns emitted values
4
Q
What kind of data can be used with async pipe?
A
- Stateful, asynchronous
5
Q
What types of pipes are supported in Angular 2?
A
- Pure and impure pipes (async pipes are a kind of impure pipe)