Update structure + Add projects page

This commit is contained in:
brunosimon
2016-06-05 23:18:50 +02:00
parent c8d111cf5c
commit b2c68a7b73
13 changed files with 289 additions and 166 deletions
@@ -0,0 +1,20 @@
angular_module.controller(
'ProjectsController',
[
'$scope',
'projects',
function( $scope, projects )
{
projects.on_update( function( data )
{
$scope.$apply( function()
{
$scope.projects = Object.keys( data.all ).length ? data.all : null;
console.log($scope.projects);
} );
} );
$scope.projects = projects.data.all
}
]
);