Front End Developer (AngularJS) Question: Download Questions PDF
Tell me how will you initialize a select box with options on page load?
![Front End Developer (AngularJS) Interview Answer Front End Developer (AngularJS) Interview Question](https://globalguideline.com/public/images/interview/4.png)
Answer:
Use the ng-init directive.
<div ng-controller="apps/dashboard/account" ng-switch
on="!!accounts" ng-init="loadData()">
<div ng-controller="apps/dashboard/account" ng-switch
on="!!accounts" ng-init="loadData()">
Download Front End Developer (AngularJS) Interview Questions And Answers
PDF
Previous Question | Next Question |
Explain difference between null and undefined? | What is an IIFE? |