-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
Add dateFormat api binding
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
app | ||
aot | ||
node_modules | ||
index.html | ||
systemjs.config.js | ||
npm-debug.log | ||
**/*.ngfactory.* |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
aot | ||
app | ||
node_modules | ||
index.html | ||
node_modules | ||
npm-debug.log | ||
systemjs.config.js | ||
**/*.ngfactory.* |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { Component, Input } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'my-app', | ||
template: ` | ||
<material-datepicker | ||
[date]="date" | ||
dateFormat="mm-dd-yyyy" | ||
></material-datepicker> | ||
` | ||
}) | ||
export class AppComponent { | ||
@Input() date: Date; | ||
|
||
constructor() { | ||
this.date = new Date(); | ||
setTimeout(this.date = new Date(2016, 8), 3000); | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { BrowserModule } from '@angular/platform-browser'; | ||
|
||
import { AppComponent } from './app.component'; | ||
import { DatepickerModule } from '../src/datepicker.module'; | ||
|
||
@NgModule({ | ||
imports: [ | ||
BrowserModule, | ||
DatepickerModule | ||
], | ||
declarations: [ AppComponent ], | ||
bootstrap: [ AppComponent ] | ||
}) | ||
export class AppModule { } |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; | ||
import { AppModule } from './app.module'; | ||
|
||
const platform = platformBrowserDynamic(); | ||
|
||
platform.bootstrapModule(AppModule); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
0 info it worked if it ends with ok | ||
1 verbose cli [ '/Users/kevinoleary/.nvm/versions/node/v5.0.0/bin/node', | ||
1 verbose cli '/Users/kevinoleary/.nvm/versions/node/v5.0.0/bin/npm', | ||
1 verbose cli 'start' ] | ||
2 info using [email protected] | ||
3 info using [email protected] | ||
4 verbose run-script [ 'prestart', 'start', 'poststart' ] | ||
5 info lifecycle [email protected]~prestart: [email protected] | ||
6 silly lifecycle [email protected]~prestart: no script for prestart, continuing | ||
7 info lifecycle [email protected]~start: [email protected] | ||
8 verbose lifecycle [email protected]~start: unsafe-perm in lifecycle true | ||
9 verbose lifecycle [email protected]~start: PATH: /Users/kevinoleary/.nvm/versions/node/v5.0.0/lib/node_modules/npm/bin/node-gyp-bin:/Users/kevinoleary/Coding/Angular-2-Datepicker/node_modules/.bin:/Users/kevinoleary/.nvm/versions/node/v5.0.0/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/local/git/bin | ||
10 verbose lifecycle [email protected]~start: CWD: /Users/kevinoleary/Coding/Angular-2-Datepicker | ||
11 silly lifecycle [email protected]~start: Args: [ '-c', 'tsc && concurrently "tsc -w" "lite-server" ' ] | ||
12 silly lifecycle [email protected]~start: Returned: code: 1 signal: null | ||
13 info lifecycle [email protected]~start: Failed to exec start script | ||
14 verbose stack Error: [email protected] start: `tsc && concurrently "tsc -w" "lite-server" ` | ||
14 verbose stack Exit status 1 | ||
14 verbose stack at EventEmitter.<anonymous> (/Users/kevinoleary/.nvm/versions/node/v5.0.0/lib/node_modules/npm/lib/utils/lifecycle.js:233:16) | ||
14 verbose stack at emitTwo (events.js:87:13) | ||
14 verbose stack at EventEmitter.emit (events.js:172:7) | ||
14 verbose stack at ChildProcess.<anonymous> (/Users/kevinoleary/.nvm/versions/node/v5.0.0/lib/node_modules/npm/lib/utils/spawn.js:24:14) | ||
14 verbose stack at emitTwo (events.js:87:13) | ||
14 verbose stack at ChildProcess.emit (events.js:172:7) | ||
14 verbose stack at maybeClose (internal/child_process.js:818:16) | ||
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5) | ||
15 verbose pkgid [email protected] | ||
16 verbose cwd /Users/kevinoleary/Coding/Angular-2-Datepicker | ||
17 error Darwin 14.4.0 | ||
18 error argv "/Users/kevinoleary/.nvm/versions/node/v5.0.0/bin/node" "/Users/kevinoleary/.nvm/versions/node/v5.0.0/bin/npm" "start" | ||
19 error node v5.0.0 | ||
20 error npm v3.3.6 | ||
21 error code ELIFECYCLE | ||
22 error [email protected] start: `tsc && concurrently "tsc -w" "lite-server" ` | ||
22 error Exit status 1 | ||
23 error Failed at the [email protected] start script 'tsc && concurrently "tsc -w" "lite-server" '. | ||
23 error This is most likely a problem with the angular2-material-datepicker package, | ||
23 error not with npm itself. | ||
23 error Tell the author that this fails on your system: | ||
23 error tsc && concurrently "tsc -w" "lite-server" | ||
23 error You can get their info via: | ||
23 error npm owner ls angular2-material-datepicker | ||
23 error There is likely additional logging output above. | ||
24 verbose exit [ 1, true ] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.