forked from launchscout/angular-googleapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.html
40 lines (33 loc) · 987 Bytes
/
example.html
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
39
40
<!doctype html>
<html lang="en" ng-app="demo" ng-controller="DemoCtrl">
<head>
<meta charset="utf-8">
<title>Client-side authentication demo</title>
</head>
<body>
<div>
<div>
<button ng-click="login()">Login</button>
<select name="calendar" ng-model="selectedCalendar" ng-options="cal.summary for cal in calendars"></select>
<button ng-click="loadCalendars()">Get Calendars</button>
<button ng-click="loadEvents()">Get Calendar Entries</button>
</div>
<ul>
<li ng-repeat="item in calendarItems">{{item.summary}}</li>
</ul>
<div ng-show="currentUser">
<h1>You're authenticated!</h1>
Logged in as {{currentUser.displayName}}
<ul>
<li ng-repeat="file in files">
{{file.title}}
</li>
</ul>
</div>
</div>
<script src="vendor/angular.js"></script>
<script src="src/angular-googleapi.js"></script>
<script src="controllers.js"></script>
<script src="https://apis.google.com/js/client.js"></script>
</body>
</html>