AngularJS Question: Download Questions PDF
Tell me with options on page load how you can initialize a select box?
Answer:
You can initialize a select box with options on page load by using 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 AngularJS Interview Questions And Answers
PDF
Previous Question | Next Question |
What is "No Control Flow Statements" in AngularJS? | What Angular JS routes does? |