Update structure + Add projects page
This commit is contained in:
@@ -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
|
||||
}
|
||||
]
|
||||
);
|
||||
Reference in New Issue
Block a user