-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
38 lines (30 loc) · 857 Bytes
/
index.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>nicolas2bert</title>
<script src="angular.min.js"></script>
</head>
<body ng-app="app">
<div ng-controller="HelloCtrl" class="container">
<a ng-click="login();">Login linkedin</a>
</div>
<script src="jquery.min.js"></script>
<script src="angular-the-linkedin.js"></script>
<script type="text/javascript">
var app = angular.module("app", ['thelinkedin']);
app.config(['TheLinkedinProvider', function(TheLinkedinProvider) {
TheLinkedinProvider.init({
scopes:"r_fullprofile "
});
}]);
app.controller("HelloCtrl", function($scope,TheLinkedin) {
$scope.login = function () {
TheLinkedin.login().then(function(response){
alert(JSON.stringify(response));
});
};
});
</script>
</body>
</html>