Skip to content

Instantly share code, notes, and snippets.

@astr0sl0th
Created December 15, 2018 18:12
Show Gist options
  • Select an option

  • Save astr0sl0th/3b0727ae4e54171c6eae46a682f93686 to your computer and use it in GitHub Desktop.

Select an option

Save astr0sl0th/3b0727ae4e54171c6eae46a682f93686 to your computer and use it in GitHub Desktop.
import { Component, OnInit } from '@angular/core';
import { ModalService } from './modal.service';
@Component({
selector: 'app-notification',
templateUrl: './notification.component.html',
styleUrls: ['./notification.component.css']
})
export class NotificationComponent implements OnInit {
constructor(private modalService: ModalService) {}
ngOnInit() {}
openNotification() {
this.modalService.toggalModal.next('notification')
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment