forked from muicss/mui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscratch.html
More file actions
38 lines (34 loc) · 1.15 KB
/
scratch.html
File metadata and controls
38 lines (34 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<!doctype html>
<html ng-app="myApp">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- for example only -->
<script src="../assets/vendor/angular/1.5.3/angular.js"></script>
<!-- end -->
<link rel="stylesheet" type="text/css" href="../assets/mui/css/mui.css"/>
<script src="../assets/mui/angular/mui-angular.js"></script>
<script>
var myApp = angular.module('myApp', ['mui']);
myApp.controller('ExampleController', ['$scope', function($scope) {
$scope.valueA = 'loadA';
$scope.changeA = function() {
console.log($scope.valueA);
};
$scope.valueB = 'loadB';
$scope.changeB = function() {
console.log($scope.valueB);
};
}]);
</script>
</head>
<body>
<form ng-controller="ExampleController">
<mui-input ng-model="valueA" ng-change="changeA()"></mui-input>
<input type="text" ng-model="valueB" ng-change="changeB()">
<div>valueA: {{valueA}}</div>
<div>valueB: {{valueB}}</div>
</form>
</body>
</html>