정답: Angular 2의 생년월일 연령을 타자 스크립트로 계산하는 방법
answer re: How do I calculate age from birth date in Angular 2 using TypeScript
2017년 1월 22일.
4
<div class="row">
<div class="input-field col m2">
<input type="date" [(ngModel)]="birthdate" id="txtdate">
</div>
<div class="input-field col m4">
<input type="number" [(ngModel)]="age" id="age">
</div>
<button (click)="CalculateAge()">Calculate Age</button>
</div>
구성 요소 import { Component, OnInit } from '@angular/core';
@Component( {
selector: 'stud',
templateUrl: './student.component.html'
})
export class StudentComponent implements OnInit
{
public birthdate:
…Open Full Answer
Reference
이 문제에 관하여(정답: Angular 2의 생년월일 연령을 타자 스크립트로 계산하는 방법), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://dev.to/dhanush9952/answer-how-do-i-calculate-age-from-birth-date-in-angular-using-typescript-3iki텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)