What is the purpose of the ng-if directive in AngularJS?
A. To repeat HTML elements for each item in a collection
B. To manage user authentication
C. To conditionally create or remove an element
D. To provide data to controllers
Answer:C
What is the purpose of the ng-if directive in AngularJS?
A. To repeat HTML elements for each item in a collection B. To manage user authentication C. To conditionally create or remove an element D. To provide data to controllers