Front End Developer (AngularJS) Question: Download Front End Developer (AngularJS) PDF

Tell me how will you initialize a select box with options on page load?

Tweet Share WhatsApp

Answer:

Use the ng-init directive.

<div ng-controller="apps/dashboard/account" ng-switch
on="!!accounts" ng-init="loadData()">

Download Front End Developer (AngularJS) PDF Read All 62 Front End Developer (AngularJS) Questions
Previous QuestionNext Question
Explain difference between null and undefined?What is an IIFE?