import { Component } from '@angular/core' ; import { AbstractForm } from '../abstract-form.component' ; import { FormSubmitService } from 'app/tell-us/form-submit.service' ; import { WindowRef } from '@shared/window-ref-wrapper' ; @ Component ( { selector : 'tell-us-form-submit' , styleUrls : [ './submit.component.scss' ] , templateUrl : './submit.component.html' } ) export class SubmitComponent extends AbstractForm { constructor ( public formSubmitService , public windowRef ) { super ( ) ; } onSubmit ( ) { this . formSubmitService . onSubmit ( this . feltReport ) ; } scrollToTop ( ) { this . windowRef . nativeWindow . scrollTo ( 0 , 0 ) ; } }