Hello everybody.

Im trying to send a message for a component when I get succeed after 
submiting a form.
This is what Im doingi:
*********************
  register( ){
        this.messages = [];
        
this.userService.register(this.userRegisterFormGroup.value).subscribe(
                res => {
                    this.router.navigate(['/dashboard']);
                },
                err => {
                    for(var i = 0; i < err.length; i++){
                        this.messages[i] = new 
CustomMessage("alert-danger", err[i]);
                        console.log(this.messages)
                    }
                }
            );
    }
  ********************

When i get an error, I show it in the same page that the form. 
I want to know, how can I pass a message of succeed to another component. I 
dont want to send it as a get parameter.

Thanks you for helping me.

x0x0

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to