-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
31 lines (24 loc) · 1.21 KB
/
index.html
File metadata and controls
31 lines (24 loc) · 1.21 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
<html>
<head>
<title>Simple Angular Auth</title>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.0-beta.5/angular.min.js"></script>
<script src="app.js"></script>
</head>
<body ng-app="app" ng-controller="Main as main">
<div class="container">
<h1>Authentication </h1>
<input type="text" ng-model="main.username" placeholder="username"><br>
<input type="password" ng-model="main.password" placeholder="password"><br>
<br>
<button class="btn btn-primary" ng-click="main.register()">Register</button>
<button class="btn btn-primary" ng-click="main.login()">Login</button>
<button class="btn btn-primary" ng-click="main.logout()" ng-show="main.isAuthed()">Logout</button>
<button class="btn btn-primary" ng-click="main.getQuote()">get quote</button>
<br><br>
{{main.message}}
<br><br><br>
<a href="nithyabloggy.wordpress.com">My blog</a>
</div>
</body>
</html>