Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. export class firstController {
  2. constructor ($http, param2, param3) {
  3. this.param3 = param2;
  4. this.param4 = param3;
  5. }
  6.  
  7. firstControllerSave() {
  8. console.log('firstController');
  9. }
  10. }
  11.  
  12. export class secondController {
  13. constructor ($http, param4, param5, param6) {
  14. this.param3 = param4;
  15. this.param4 = param5;
  16. this.param5 = param6;
  17.  
  18. this.handleSecondController();
  19. }
  20.  
  21. handleSecondController() {
  22. console.log('secondController');
  23. }
  24.  
  25. }
  26.  
  27. export class combinedControllers {
  28. constructor($http, param2, param3, param4, param5, param6) {
  29. this.isSaving = false;
  30. this._$mdDialog = $mdDialog;
  31. this.param2 = param2;
  32. this.param3 = param3;
  33. this.param4 = param4;
  34. this.param5 = param5;
  35. this.param6 = param6;
  36.  
  37. this.handleSecondController();
  38. }
  39.  
  40. handleSecondController() {
  41. console.log('secondController');
  42. }
  43.  
  44. firstControllerSave(){
  45. console.log('first controller save');
  46. }
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement