Front End Developer (AngularJS) Question:
Download Questions PDF

Tell me 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()">

Download Front End Developer (AngularJS) Interview Questions And Answers PDF

Previous QuestionNext Question
Explain difference between null and undefined?What is an IIFE?