2017-04-26 09:23:53 +03:00
|
|
|
<!doctype html>
|
|
|
|
<html lang="et" ng-app="app">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
2017-04-26 11:35:05 +03:00
|
|
|
<title>Ng1comp</title>
|
2017-04-26 09:23:53 +03:00
|
|
|
<link rel="stylesheet" href="styles.css">
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<div ng-controller="BoardCtrl as vm">
|
|
|
|
|
2017-04-26 11:35:05 +03:00
|
|
|
{{ vm.state }}
|
2017-04-26 09:23:53 +03:00
|
|
|
|
2017-04-26 11:35:05 +03:00
|
|
|
<br><br>
|
2017-04-26 09:23:53 +03:00
|
|
|
|
2017-04-26 11:35:05 +03:00
|
|
|
<a href ng-click="vm.toggleAlarm()">Toggle alarm</a>
|
2017-04-26 09:23:53 +03:00
|
|
|
|
|
|
|
</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>
|