Create a gist now
Instantly share code, notes, and snippets.
Johan-ZeLearner/navigationLeft.js
Created Feb 27, 2015
What would you like to do?
Embed
Embed this gist in your website.
Share
Copy sharable URL for this gist.
Clone via
HTTPS
Clone with Git or checkout with SVN using the repository’s web address.
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