Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. class TestCtrl {
  2. constructor($injector: IInjectorService) {...}
  3. }
  4.  
  5. class TestCtrl {
  6. constructor($injector: ng.auto.IInjectorService) {...}
  7. }
  8.  
  9. ///<reference path="../path/to/typeDefinitions/angularjs/angular" />
  10.  
  11. import IInjectorService = ng.auto.IInjectorService;
  12.  
  13. class TestCtrl {
  14. constructor($injector: IInjectorService) {...}
  15. }
  16.  
  17. import {IInjectorService} from '../path/to/typeDefinitions/angularjs/angular';
  18.  
  19. class TestCtrl {
  20. constructor($injector: IInjectorService) {...}
  21. }
  22.  
  23. import {auto as ngAuto} from "angular";
  24. var foo:ngAuto.IInjectorService;
  25.  
  26. class TestCtrl {
  27. myReference: any;
  28. constructor($injector: ng.auto.IInjectorService){
  29. myReference = $injector.get('name');
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement