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?
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()">
Previous Question | Next Question |
Explain difference between null and undefined? | What is an IIFE? |