Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit 080431e

Browse files
committed
Move demo to examples directory
1 parent 762b821 commit 080431e

File tree

1 file changed

+7
-21
lines changed

1 file changed

+7
-21
lines changed

demo/index.html renamed to examples/demo.html

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html lang="en" ng-app="DemoApp">
2+
<html lang="en" ng-app="demo">
33
<head>
44
<meta charset="utf-8">
55
<title>AngularJS ui-select</title>
@@ -20,7 +20,11 @@
2020

2121
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.12/angular.js"></script>
2222

23+
<!-- ui-select files -->
2324
<script src="../dist/select.js"></script>
25+
<link rel="stylesheet" href="../dist/select.css">
26+
27+
<script src="demo.js"></script>
2428

2529
<!-- Select2 theme -->
2630
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/select2/3.4.5/select2.css">
@@ -48,6 +52,8 @@
4852
</head>
4953

5054
<body ng-controller="MainCtrl">
55+
<script src="demo.js"></script>
56+
5157
<p>Selected: {{person.selected.name}}</p>
5258

5359
<p>Select2 theme (default):</p>
@@ -67,25 +73,5 @@
6773
<div>{{item.email}}</div>
6874
</choices>
6975
</ui-select>
70-
71-
<script>
72-
angular.module('DemoApp', ['ui.select'])
73-
.config(function(uiSelectConfig) {
74-
// uiSelectConfig.defaultTheme = 'select2';
75-
// uiSelectConfig.defaultTheme = 'selectize';
76-
})
77-
.controller('MainCtrl', ['$scope', function ($scope) {
78-
$scope.person = {};
79-
$scope.people = [
80-
{ name: 'Wladimir Coka', email: '[email protected]' },
81-
{ name: 'Samantha Smith', email: '[email protected]' },
82-
{ name: 'Estefanía Smith', email: '[email protected]' },
83-
{ name: 'Natasha Jones', email: '[email protected]' },
84-
{ name: 'Nicole Smith', email: '[email protected]' },
85-
{ name: 'Adrian Jones', email: '[email protected]' },
86-
];
87-
}
88-
]);
89-
</script>
9076
</body>
9177
</html>

0 commit comments

Comments
 (0)