How to initiate variable in angularjs?



How to initiate variable in angularjs?..

Answer / Tannu Singh

To initialize a variable in AngularJS, you can create or assign it directly within the controller function's scope object.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

Explain ng-bind directive angularjs?

1 Answers  


What are the inbulit angular directives?

1 Answers  


Why we use routing in angularjs?

1 Answers  


How to update angular 4,5, 6 to angular 7?

1 Answers  


What are angular global apis?

1 Answers  


What is property binding in angular?

1 Answers  


What is the difference between lazy loading and eager loading in angular 2?

1 Answers  


What is bazel in angular?

1 Answers  


What are the advantages of using angular 2?

1 Answers  


What is angular8?

3 Answers  


Explain $q service, deferred and promises.

1 Answers  


What’s new in angular 4? And what are the improvements in angular 4?

1 Answers  


Categories