Created
October 26, 2020 13:50
-
-
Save melkorCBA/38e41ff070f65f624d60e8ff54e134f2 to your computer and use it in GitHub Desktop.
landing component class
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Router } from '@angular/router'; | |
| import { Component, OnInit } from '@angular/core'; | |
| @Component({ | |
| selector: 'app-landing', | |
| templateUrl: './landing.component.html', | |
| styleUrls: ['./landing.component.scss'] | |
| }) | |
| export class LandingComponent implements OnInit { | |
| constructor( | |
| private router: Router) { } | |
| ngOnInit(): void { | |
| } | |
| openModal() { | |
| this.router.navigate([{ outlets: { panel: ['modal1'] } }], { skipLocationChange: true }); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment