# HG changeset patch
# User rougeronj
# Date 1426606463 -3600
# Node ID 4d27fbc3f9dfa279273e82c2bf0d474b1d638134
# Parent 08f34bbc70ee9327a81e8156a9e82fbbf372a422
Succed to get the books from our api server and print them dynamically
diff -r 08f34bbc70ee -r 4d27fbc3f9df .pydevproject
--- a/.pydevproject Wed Mar 11 17:38:14 2015 +0100
+++ b/.pydevproject Tue Mar 17 16:34:23 2015 +0100
@@ -1,8 +1,11 @@
-ammico_python
-python 2.7
+python_ammico
+python 3.0
/${PROJECT_DIR_NAME}/server
+
+/Users/rougeronj/workspace/Envs/ammicoEnv/lib/python3.4/site-packages
+
diff -r 08f34bbc70ee -r 4d27fbc3f9df client/app/app.js
--- a/client/app/app.js Wed Mar 11 17:38:14 2015 +0100
+++ b/client/app/app.js Tue Mar 17 16:34:23 2015 +0100
@@ -54,7 +54,6 @@
$logProvider.debugEnabled(true);
})
.service('searchApi', function($resource, context) {
- console.log('search 4',$resource, context);
this.searchResource = function(params){
return $resource(context.urls.searchUrl,
{
@@ -85,6 +84,7 @@
}
});
};
+ this.getResource = $resource(context.urls.ammicoUrl+'/:action', {action:'@action'});
});
})();
diff -r 08f34bbc70ee -r 4d27fbc3f9df client/app/home/home.html
--- a/client/app/home/home.html Wed Mar 11 17:38:14 2015 +0100
+++ b/client/app/home/home.html Tue Mar 17 16:34:23 2015 +0100
@@ -1,7 +1,10 @@
Ammico Application
-Liste des pages :
-
+Liste des books :
+
+
\ No newline at end of file
diff -r 08f34bbc70ee -r 4d27fbc3f9df client/app/home/home_controller.js
--- a/client/app/home/home_controller.js Wed Mar 11 17:38:14 2015 +0100
+++ b/client/app/home/home_controller.js Tue Mar 17 16:34:23 2015 +0100
@@ -1,33 +1,40 @@
(function(){
- 'use strict';
+ 'use strict';
- angular.module('ammicoHome',['ngRoute'])
- .config(function ($routeProvider) {
- $routeProvider
- .when('/', {
- templateUrl: 'home/home.html',
- controller: 'homeCtrl'
- });
- })
- .controller('homeCtrl', function($scope, $location){
- console.log('5-0',$scope, $location);
- $scope.searchSubmit = function(){
- $location.path('/search/' + $scope.q);
- };
- })
- .filter('meta', function() {
- return function(input, metaName) {
- var nb = input.length, i = 0, found = false;
- while(found===false && i