Skip to content

Instantly share code, notes, and snippets.

@Johan-ZeLearner
Created February 27, 2015 16:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Johan-ZeLearner/c1491d225da2c624ee5b to your computer and use it in GitHub Desktop.
Save Johan-ZeLearner/c1491d225da2c624ee5b to your computer and use it in GitHub Desktop.
navigationLeft.js
angular.module("MonApplicationAngularJS")
.directive("navigationLeft", function(){
return {
restrict: 'E',
templateUrl: 'navigation-left.html',
controller: ["$scope", function($scope)
{
$scope.navigationItem = [{
label : 'element de navigation 1',
url: '/#/element1'
},{
label : 'element de navigation 2',
url: '/#/element2'
},{
label : 'element de navigation 3',
url: '/#/element3'
},{
label : 'element de navigation 4',
url: '/#/element4'
}];
}]
};
}]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment