Skip to main content

Posts

Showing posts with the label Options

DropDownList in AngularJs

Hello everyone, I am going to share the code sample for bind drop down list or options binding using the AngularJs. The live demo example code as given below. The HTML code sample < div  ng-app ="dropdown"    ng-controller ="dropdownController">      Please Select Dropdown         < select   data-ng-model ="employee.details"   data-ng-options ="e.name +' [' + e.type + ']' for e in employees"></ select > </ div > The AngularJs code sample     var   app = angular.module( 'dropdown' , []);         app.controller( 'dropdownController' ,   function   ($scope) {             $scope.employee = {                 name:   "Anil" ,          ...