| author | rougeronj |
| Fri, 20 Mar 2015 11:32:02 +0100 | |
| changeset 20 | a84fce1b1a98 |
| parent 14 | 4d27fbc3f9df |
| permissions | -rw-r--r-- |
| 13 | 1 |
(function(){ |
2 |
'use strict'; |
|
3 |
||
4 |
||
5 |
angular.module('ammicoLogin',['ngRoute']) |
|
6 |
.config(function ($routeProvider) { |
|
7 |
$routeProvider |
|
8 |
.when('/', { |
|
9 |
templateUrl: 'login/login.html', |
|
10 |
controller: 'loginCtrl' |
|
11 |
}); |
|
12 |
}) |
|
13 |
.controller('loginCtrl', function($http){ |
|
|
14
4d27fbc3f9df
Succed to get the books from our api server and print them dynamically
rougeronj
parents:
13
diff
changeset
|
14 |
$http.get('http://127.0.0.1:8080/ammico/login/?&username=toto@gmail.com'). |
| 13 | 15 |
success(function() { |
16 |
console.log('KATAPLA !'); |
|
17 |
}); |
|
18 |
}); |
|
19 |
})(); |