forked from sspranay/angular2-quickstart
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(package): udpated to beta.12 and ng2-bootstrap 1.0.9
- Loading branch information
Showing
6 changed files
with
45 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,4 +31,5 @@ node_modules | |
|
||
.idea | ||
app/**/*.js | ||
app/**/*.js.map | ||
app/**/*.js.map | ||
typings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,33 @@ | ||
import {Component} from 'angular2/core'; | ||
import {Alert} from 'ng2-bootstrap/ng2-bootstrap'; | ||
import {Alert, DATEPICKER_DIRECTIVES} from 'ng2-bootstrap/ng2-bootstrap'; | ||
|
||
@Component({ | ||
selector: 'my-app', | ||
directives: [Alert], | ||
directives: [Alert, DATEPICKER_DIRECTIVES], | ||
template: ` | ||
<alert type="info">ng2-bootstrap hello world!</alert> | ||
<pre>Selected date is: <em *ngIf="dt">{{ getDate() | date:'fullDate'}}</em></pre> | ||
<h4>Inline</h4> | ||
<div style="display:inline-block; min-height:290px;"> | ||
<datepicker [(ngModel)]="dt" [minDate]="minDate" [showWeeks]="true"></datepicker> | ||
</div> | ||
`, | ||
}) | ||
export class AppComponent { | ||
public dt:Date = new Date(); | ||
private minDate:Date = null; | ||
private events:Array<any>; | ||
private tomorrow:Date; | ||
private afterTomorrow:Date; | ||
private formats:Array<string> = ['DD-MM-YYYY', 'YYYY/MM/DD', 'DD.MM.YYYY', 'shortDate']; | ||
private format = this.formats[0]; | ||
private dateOptions:any = { | ||
formatYear: 'YY', | ||
startingDay: 1 | ||
}; | ||
private opened:boolean = false; | ||
|
||
public getDate():number { | ||
return this.dt && this.dt.getTime() || new Date().getTime(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ | |
"listFiles": true | ||
}, | ||
"exclude": [ | ||
"node_modules" | ||
"node_modules", | ||
"typings/browser.d.ts" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"ambientDependencies": { | ||
"es6-shim": "registry:dt/es6-shim#0.31.2+20160317120654" | ||
} | ||
} |