Skip to content

Instantly share code, notes, and snippets.

@akio46
Created December 12, 2016 09:31
Show Gist options
  • Save akio46/88d202682353746b78c4d73e00f0727c to your computer and use it in GitHub Desktop.
Save akio46/88d202682353746b78c4d73e00f0727c to your computer and use it in GitHub Desktop.
import { Component, OnInit } from '@angular/core';
import { DateRange } from '../common/datetime-range/datetime-range.component';
@Component({
selector: 'sample',
templateUrl: 'app/component/sample/sample.component.html',
styleUrls: ['app/component/sample/sample.component.css']
})
export class SampleComponent {
firstName = '';
lastName = '';
date = new Date();
dateRange = new DateRange();
onSubmit() {
console.log(JSON.stringify(this));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment