-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhome.ts
More file actions
30 lines (24 loc) · 722 Bytes
/
Copy pathhome.ts
File metadata and controls
30 lines (24 loc) · 722 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import {Component, OnInit} from 'angular2/core';
import {FORM_DIRECTIVES} from 'angular2/common';
import {DATEPICKER_DIRECTIVES} from 'ng2-bootstrap/ng2-bootstrap';
import * as moment from 'moment'; // for dates in calender
@Component({
selector: 'home',
directives: [...FORM_DIRECTIVES, DATEPICKER_DIRECTIVES],
pipes: [],
template: require('../../templates/home/home.html'),
styles: [require('../../styles/home/home.scss')]
})
export class Home implements OnInit {
public date:Date = new Date ();
constructor() {
// Do stuff
}
ngOnInit() {
console.log('Hello Home');
}
public today() {
$("#test-jquery").delay(10).text('Hello, world of Jquery!');
this.date = new Date();
}
}