Skip to content

Instantly share code, notes, and snippets.

@e-oz
Last active August 29, 2015 14:16
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 e-oz/38bed5820e2876bf3a90 to your computer and use it in GitHub Desktop.
Save e-oz/38bed5820e2876bf3a90 to your computer and use it in GitHub Desktop.
'use strict';
// @ngInject
function exmpNavigation($state) {
return {
restrict: '',
templateUrl: 'components/exmpNavigation/template.html',
controllerAs: 'cNav',
controller: function () {
this.go = function (route) {
$state.go(route);
};
}
};
}
export default exmpNavigation;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment