import { Component , OnInit } from '@angular/core' ; import { CompassService } from '../compass.service' ; @ Component ( { selector : 'm-compassQuestionnaire__modal' , templateUrl : './questionnaire-modal.component.html' , styleUrls : [ './questionnaire-modal.component.ng.scss' ] , } ) export class CompassQuestionnaireModalComponent { constructor ( public compassService ) { } submit ( $event ) { this . compassService . submitRequested$ . next ( true ) ; } }