Skip to main content

Posts

Showing posts with the label how to get selected dropdown value in angularjs?

How to get selected drop-down value in angularjs?

The JavaScript code sample as given below. < script > var app = angular.module( 'addConnectionApp' , []) app.controller( 'addConnectionCtrl' , function ($scope) {     $scope.companies = [{         id: '1' ,         name: 'ViaIndia'     }, {         id: '2' ,         name: 'Invia'     }, {         id: '3' ,         name: 'Dominos'     }, {         id: '4' ,         name: 'Pizza'     }];     $scope.tents = [{         id: '1' ,         name: 'Optus'     }];     $scope...