Skip to content

Instantly share code, notes, and snippets.

@nexus-uw
Created July 29, 2015 18:19
Show Gist options
  • Save nexus-uw/345d6d0ff9a6b253568d to your computer and use it in GitHub Desktop.
Save nexus-uw/345d6d0ff9a6b253568d to your computer and use it in GitHub Desktop.
example use of Angular Directive return type in typescript
export let myDirective = (): ng.IDirective => {
return {
restrict: 'E',
scope: {
databound : '='
},
controllerAs: 'ctrl',
bindToController: true,
templateUrl: 'template.html',
controller: MyControllerClass
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment