-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
36 lines (28 loc) · 994 Bytes
/
index.html
File metadata and controls
36 lines (28 loc) · 994 Bytes
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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="./css/ungrid.css">
</head>
<body ng-app="myApp" ng-controller="myAppController as app" ng-cloak>
<div class="row">
<input type="file" file-model="app.myFile" class="col"/>
<button ng-click="app.upload()" class="col">Upload File</button>
</div>
<div ng-if="app.myCsv.length > 0">
<table>
<tr ng-repeat="row in app.myCsv track by $index" class="row">
<td ng-repeat="col in row track by $index">
<input type="text" ng-model="app.myCsv[$parent.$index][$index]" class="col">
</td>
</tr>
</table>
</div>
<div ng-if="app.myCsv.length == 0">
<p>
Sorry, nothing to see here folks....
</p>
</div>
</body>
<script type="text/javascript" src="./node_modules/angular/angular.js"></script>
<script type="text/javascript" src="./app/app.js"></script>
</html>