aboutsummaryrefslogtreecommitdiffstats
path: root/framework/src/onos/web/gui/src/main/webapp/_sdh/ng-examples/ch04-11-select-example.html
diff options
context:
space:
mode:
Diffstat (limited to 'framework/src/onos/web/gui/src/main/webapp/_sdh/ng-examples/ch04-11-select-example.html')
-rw-r--r--framework/src/onos/web/gui/src/main/webapp/_sdh/ng-examples/ch04-11-select-example.html41
1 files changed, 0 insertions, 41 deletions
diff --git a/framework/src/onos/web/gui/src/main/webapp/_sdh/ng-examples/ch04-11-select-example.html b/framework/src/onos/web/gui/src/main/webapp/_sdh/ng-examples/ch04-11-select-example.html
deleted file mode 100644
index a8cda33c..00000000
--- a/framework/src/onos/web/gui/src/main/webapp/_sdh/ng-examples/ch04-11-select-example.html
+++ /dev/null
@@ -1,41 +0,0 @@
-<!DOCTYPE html>
-<html ng-app="notesApp">
-<head>
- <title>Notes App</title>
- <script src="../../tp/angular.js"></script>
-</head>
-<body ng-controller="MainCtrl as ctrl">
-
- <div>
- <select ng-model="ctrl.selectedCountryId"
- ng-options="c.id as c.label for c in ctrl.countries">
- </select>
- Selected Country ID: {{ctrl.selectedCountryId}}
- </div>
-
- <div>
- <select ng-model="ctrl.selectedCountry"
- ng-options="c.label for c in ctrl.countries track by c.id">
- </select>
- Selected Country: {{ctrl.selectedCountry}}
- </div>
-
- <script type="text/javascript">
- angular.module('notesApp', [])
- .controller('MainCtrl', [function () {
- var self = this;
-
- self.countries = [
- {label: 'UK', id: 1},
- {label: 'USA', id: 2},
- {label: 'France', id: 3},
- {label: 'Italy', id: 4}
- ];
- var first = self.countries[0];
- self.selectedCountryId = first.id;
- self.selectedCountry = first;
- }]);
- </script>
-
-</body>
-</html>