Created
July 29, 2015 18:19
-
-
Save nexus-uw/345d6d0ff9a6b253568d to your computer and use it in GitHub Desktop.
example use of Angular Directive return type in typescript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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