Advertisement
Guest User

Untitled

a guest
Oct 6th, 2015
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. module ui {
  2.  
  3. export class ButtonDirective implements angular.IDirective {
  4.  
  5. public template: string;
  6.  
  7. constructor() {
  8. this.template = '<input class="btn" type="submit" value="Submit">';
  9. }
  10.  
  11. }
  12.  
  13. export var ButtonDirectiveFactory = (): ng.IDirective => {
  14. return new ButtonDirective();
  15. }
  16. ButtonDirectiveFactory.$inject = [];
  17.  
  18. }
  19.  
  20. angular.module('ui').directive('uiButton', ui.ButtonDirectiveFactory);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement