36 lines
753 B
HTML
36 lines
753 B
HTML
<!doctype html>
|
|
<html lang="et" ng-app="app">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Ng1ts</title>
|
|
<link rel="stylesheet" href="styles.css">
|
|
</head>
|
|
<body>
|
|
|
|
<div ng-controller="BoardCtrl as vm">
|
|
|
|
Light: <switch initial="vm.state.light"
|
|
on-change="vm.lightSwitchCallback"></switch>
|
|
|
|
<br>
|
|
|
|
Alarm: <switch initial="vm.state.alarm"
|
|
on-change="vm.alarmSwitchCallback"></switch>
|
|
|
|
</div>
|
|
|
|
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script>
|
|
|
|
<!-- inject:js -->
|
|
<script src="app/app.js"></script>
|
|
<script src="app/board.ctrl.js"></script>
|
|
<script src="app/board.srv.js"></script>
|
|
<script src="app/switch.cmp.js"></script>
|
|
<!-- endinject -->
|
|
|
|
|
|
|
|
|
|
</body>
|
|
</html>
|