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,39 @@
angular_module.controller(
'ProjectController',
[
'$scope',
'project',
function( $scope, project )
{
update_callback = null;
// Result
var result = {};
result.data = {};
result.on_update = function( callback )
{
update_callback = callback;
};
$scope.folder_click = function( folder )
{
console.log( folder );
};
$scope.file_click = function( file )
{
console.log( file );
};
project.on_update( function( data )
{
$scope.$apply( function()
{
$scope.project = data;
} );
} );
this.project = project.data;
}
]
);