feat: demo version additions

This commit is contained in:
Sergey Andrievskiy 2021-08-06 18:48:35 +03:00
parent 0eec54695f
commit eee950248e
322 changed files with 23456 additions and 188 deletions

View file

@ -0,0 +1,40 @@
/**
* @license
* Copyright Akveo. All Rights Reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*/
import { Component, ElementRef, ViewChild } from '@angular/core';
@Component({
selector: 'ngx-landing-contact-section',
templateUrl: './contact-section.component.html',
styleUrls: ['./contact-section.component.scss'],
})
export class ContactSectionComponent {
@ViewChild('contactForm', { static: false }) contactForm: HTMLFormElement;
@ViewChild('emailInput', { static: false }) emailInput: ElementRef;
isAgree = false;
invalid = false;
constructor() {
}
submitForm() {
if (!this.emailInput.nativeElement.value) {
this.invalid = true;
return;
}
this.contactForm.nativeElement.submit();
this.invalid = false;
this.emailInput.nativeElement.value = '';
}
get disabledControl() {
return this.isAgree ? null : 'disabled';
}
}