Skip to content

Instantly share code, notes, and snippets.

@melkorCBA
Created October 26, 2020 13:50
Show Gist options
  • Select an option

  • Save melkorCBA/38e41ff070f65f624d60e8ff54e134f2 to your computer and use it in GitHub Desktop.

Select an option

Save melkorCBA/38e41ff070f65f624d60e8ff54e134f2 to your computer and use it in GitHub Desktop.
landing component class
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