<html>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
<body>
<div ng-app="ornekModul" ng-controller="ornekController">
<select ng-model="secilenIsim" ng-options="isim for isim in isimler">
</select>
<span>Seçilen isim: {{secilenIsim}}</span>
</div>
<script>
var app = angular.module('ornekModul', []);
app.controller('ornekController', function($scope) {
$scope.isimler = ["Ahmet", "Samed", "Erkan", "Ozan"];
});
</script>
</body>
</html>
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.