diff -r 1ada9d221ba3 -r 08f34bbc70ee client/app/login/login_controller.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/client/app/login/login_controller.js Wed Mar 11 17:38:14 2015 +0100 @@ -0,0 +1,19 @@ +(function(){ + 'use strict'; + + + angular.module('ammicoLogin',['ngRoute']) + .config(function ($routeProvider) { + $routeProvider + .when('/', { + templateUrl: 'login/login.html', + controller: 'loginCtrl' + }); + }) + .controller('loginCtrl', function($http){ + $http.get('http://127.0.0.1:8000/ammico/login/?&username=toto@gmail.com'). + success(function() { + console.log('KATAPLA !'); + }); + }); +})();