Skip to content

Instantly share code, notes, and snippets.

@stewones
Created March 20, 2015 18:19
Show Gist options
  • Save stewones/ff1e4680bcbd0afdb237 to your computer and use it in GitHub Desktop.
Save stewones/ff1e4680bcbd0afdb237 to your computer and use it in GitHub Desktop.
es6 directive
'use strict';
/*@ngInject*/
function topMenu() {
return {
//restrict: "E",
templateUrl: "app/layout/top-menu.tpl.html",
// transclude: true,
// scope: {},
link: function($scope, $element) {
// toggle();
// $rootScope.$on('locationChanged', function() {
// toggle();
// });
// $rootScope.$on('stateChanged', function() {
// toggle();
// });
// function toggle() {
// $timeout(function() {
// if (PageFactory.load.status)
// $element.removeClass("hide");
// else
// $element.addClass("hide");
// }, 1000);
// }
}
}
}
export
default topMenu;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment