It almost sounds like you want a modal dialog.
If that works for you, you can check out the one available from bootstrap:
http://valor-software.com/ng2-bootstrap/#/modals

On Fri, Aug 26, 2016 at 12:39 AM Luan Garrido <[email protected]> wrote:

> 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.
>
-- 
Lucas Lacroix
Computer Scientist
Advanced Technology Division, MEDITECH <http://ehr.meditech.com/>
781-774-2293

-- 
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