What do you understand by a template variable? How is it used?



What do you understand by a template variable? How is it used?..

Answer / Ziaul Qamar

A Template Variable in AngularJS is a placeholder for an element within the template. It's used to access or manipulate that element's properties or DOM structure from your controller. The variable name is specified using the ng-model directive.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

What are services in angularjs?

1 Answers  


How do you use singleton pattern?

1 Answers  


What is class in typescript?

1 Answers  


How to add css styles in angular 5/4 applications?

1 Answers  


What is aot build?

1 Answers  


What is ngrx?

1 Answers  


How would you control the size of an element on resize of the window in a component?

1 Answers  


How to setup and install ionic framework with angular 4?

1 Answers  


What is rxjs in angular?

1 Answers  


What is routerlink?

1 Answers  


What are cookies in angular 2?

1 Answers  


Explain ng-include directive.

1 Answers  


Categories