Skip to content

Commit

Permalink
Updated readme and examples
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinNuc committed Apr 11, 2016
1 parent 93a18b8 commit 7913cf0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ Check demo page for live example.
<input type="text" datetime="yyyy-MM-dd" ng-model="myDate" min="Jan 1, 1990" max="Dec 31, 2050">
<input type="text" datetime="yyyy-MM-dd" ng-model="myDate" datetime-model="yyyy-MM-ddTHH:mm:ss">
<input type="text" datetime="yyyy-MM-dd" ng-model="myDate" default="Jan 1, 2000">
<input type="text" datetime="dd.MM.yyyy" ng-model="myDate" datetime-separator=",">
```

Parsing errors
Expand Down Expand Up @@ -105,6 +106,7 @@ Changelog
---------
* next
- jump on the next segment on pressing next separator key
- customizable separator key
* 3.0.1 (Apr 9, 2016)
- Fix validator and datetime-model bug. [#27](https://github.com/eight04/angular-datetime/issues/27)
* 3.0.0 (Apr 1, 2016)
Expand Down
7 changes: 7 additions & 0 deletions example/demo-angular-1.5.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,5 +134,12 @@ <h3>Other tests</h3>
<pre class="code"><code>{{data.myDateString2 | json}}</code></pre>
</label>
</div>
<h3>Custom separator</h3>
<p>Used to jump on the next segment when pressing separator key. In this example angular-datetime will jump on the next segment when pressing `.` or `,`.</p>
<div class="form-group">
<label>
<input type="text" class="form-control" datetime="dd.MM.yyyy" ng-model="data.myDate" datetime-separator=",">
</label>
</div>
</body>
</html>
7 changes: 7 additions & 0 deletions example/demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -135,5 +135,12 @@ <h3>Other tests</h3>
<pre class="code"><code>{{data.myDateString2 | json}}</code></pre>
</label>
</div>
<h3>Custom separator</h3>
<p>Used to jump on the next segment when pressing separator key. In this example angular-datetime will jump on the next segment when pressing `.` or `,`.</p>
<div class="form-group">
<label>
<input type="text" class="form-control" datetime="dd.MM.yyyy" ng-model="data.myDate" datetime-separator=",">
</label>
</div>
</body>
</html>

0 comments on commit 7913cf0

Please sign in to comment.