How to open a popup with Router Angular2?

Viewed 8623

I am currently trying to make my angular2 app open a popup if I go to a specific URL.

Example : mywebsite.com/register

It should directly open a web page with the popup to register.

Currently I have :

MAIN.HTML

 <header></header>
<body-cmp></body-cmp>


<div class="row">
  <button md-raised-button class="md-raised md-primary" type="submit" ><a href="" [routerLink]="['/Login']">S'incrire</a></button>

</div>
<router-outlet></router-outlet>
<footer></footer>

MAIN.TS

@RouteConfig([
  {
    path: '/register',
    name: 'Login',
    component: LoginCmp
  }
])

It's working my Login.html is loaded but how can I remove the header,body and footer and also make appear a popup ?

Thanks

1 Answers
Related