team page refactoring: + team-member-profile component, -team-member-profile directive; other

This commit is contained in:
tmshv committed 2016-02-22 00:48:18 +03:00
1 parent 43ab4a66f8
commit 74e6d594c9
9 files changed
+65 -74

No files matched your search

+2 -1
View File
@@ -5,6 +5,7 @@
import Document from './components/Document';
import Award from './components/Award';
import GalleryItem from './components/GalleryItem';
import TeamMemberProfile from './components/TeamMemberProfile';
import api from './api/api';
var deps = [
@@ -84,7 +85,6 @@ app.run(function ($location, $rootScope, $http) {
api,
require("./services/io"),
require("./directives/mainMenu"),
require("./directives/teamMemberProfile"),
require("./directives/backgroundPicture"),
require("./ui/menu"),
require("./ui/breadcrumbs"),
@@ -103,6 +103,7 @@ app.run(function ($location, $rootScope, $http) {
Document,
Award,
GalleryItem,
TeamMemberProfile,
function (app) {
app.controller("SchedulePageController", function ($scope) {
$scope.pageClass = "page-schedule";
@@ -0,0 +1,10 @@
import template from '../../templates/components/team-member-profile.html';
export default function (app) {
app.component('teamMemberProfile', {
bindings: {
member: '='
},
template: template
});
};
@@ -1,13 +0,0 @@
module.exports = function (app) {
app.directive('teamMemberProfile', function (menu) {
return {
restrict: 'E',
templateUrl: '/views/team/profile.html',
scope: {
person: '=profile'
},
link: function(scope, element){
}
}
});
};