Advertisement
Guest User

Untitled

a guest
Aug 21st, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. <app-modal modalId="editUser" modalSize="modal-lg" modalTitle="Editar Usuario - {{user.userId}}" modalIcon="ion-ios-person-outline">
  2. <app-edit-user [user]="user"></app-edit-user>
  3. </app-modal>
  4.  
  5. onRowSelect(event) {
  6. this.newUser = false;
  7. this.user = this.cloneUser(event.data);
  8. $("#editUser").modal();
  9. }
  10.  
  11. getParameters(user){
  12. console.log(user);
  13. this._userService.getParameter(user).subscribe(
  14. response => {
  15. this.userParameter = response.pagedResult.resultado;
  16. console.log(this.userParameter);
  17. },
  18. error => {
  19. console.log(<any>error);
  20. }
  21. );
  22. }
  23.  
  24. // Desde aqui llamo la funciĆ³n pero como se ejecuta al cargar el componente los datos siempre vienen vacios
  25.  
  26. ngOnInit() {
  27. console.log(this.user.userId);
  28. this.getParameters(this.user.userId);
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement