Tuesday, August 26, 2014

Previous Interview Question Next Interview Question
Home

How will you initialize a select box with options on page load?

Use the ng-init directive.

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

Previous Interview Question Next Interview Question
Home

0 comments :

Post a Comment