<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8">

<meta http-equiv="X-UA-Compatible" content="IE=edge">

<title></title>

<link rel="stylesheet" href="">

</head>

<body>

<div ng-app="myApp" ng-controller="myCtrl">

<select ng-model="selectedSite" ng-options="x.site for x in sites"></select>

<h1>你选择的是: `selectedSite`.`site`</h1>

<p>网址为: `selectedSite`.`url`</p>

</div>

</body>

<script src="http://cdn.static.runoob.com/libs/angular.js/1.4.6/angular.min.js"></script>

<script>

var app = angular.module("myApp",[]);

app.controller("myCtrl",function($scope){

$scope.sites = [

{site:"Google",url:"http://www.google.com"},

{site : "Runoob", url : "http://www.runoob.com"},

    {site : "Taobao", url : "http://www.taobao.com"}

];

});

</script>

</html>