OpenSlides/openslides/users/static/js/users/projector.js

29 lines
676 B
JavaScript
Raw Normal View History

(function () {
'use strict';
angular.module('OpenSlidesApp.users.projector', ['OpenSlidesApp.users'])
.config([
'slidesProvider',
function(slidesProvider) {
slidesProvider.registerSlide('users/user', {
template: 'static/templates/users/slide_user.html',
});
}
])
.controller('SlideUserCtrl', [
'$scope',
'User',
function($scope, User) {
// Attention! Each object that is used here has to be dealt on server side.
// Add it to the coresponding get_requirements method of the ProjectorElement
// class.
var id = $scope.element.id;
User.bindOne(id, $scope, 'user');
}
]);
}());