implement componenitized navigation and remove old nav and layout code

This commit is contained in:
John Mitchell
2017-09-06 17:32:32 -04:00
parent 2daaef2a99
commit ea91fabba0
49 changed files with 677 additions and 1540 deletions

View File

@@ -0,0 +1,32 @@
function atSideNavLink (scope, element, attrs, ctrl) {
scope.layoutVm = ctrl;
}
function AtSideNavController () {
let vm = this || {};
vm.isExpanded = true;
vm.toggleExpansion = () => {
vm.isExpanded = !vm.isExpanded;
}
}
function atSideNav (pathService) {
return {
restrict: 'E',
replace: true,
require: '^^atLayout',
controller: AtSideNavController,
controllerAs: 'vm',
link: atSideNavLink,
transclude: true,
templateUrl: pathService.getPartialPath('components/layout/side-nav'),
scope: {
}
};
}
atSideNav.$inject = ['PathService'];
export default atSideNav;