Angular%20JS%20Interview%20Questions%20and%20Answers
Question: How will you initialize a select box with options on page load?Answer:Use the ng-init directive. <div ng-controller="apps/dashboard/account" ng-switch on="!!accounts" ng-init="loadData()"> |
Is it helpful?
Yes
No
Most helpful rated by users:
- What is AngularJS?
- Tell me does Angular use the jQuery library?
- Tell me can we use the open-source Closure Library with Angular?
- Why is this project called "AngularJS"? Why is the namespace called "ng"?
- Can you please explain what is testability like in Angular?