This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(calendar): starting work for date-picker.
- Loading branch information
Showing
3 changed files
with
41 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<div ng-controller="AppCtrl" style='padding: 40px;'> | ||
<md-content> | ||
<h1>{{title}}</h1> | ||
|
||
<hr> | ||
<p> | ||
<h2>Development tools</h2> | ||
<button type="button" ng-click="adjustMonth(+1)">Next month</button> | ||
<button type="button" ng-click="adjustMonth(-1)">Prev month</button> | ||
<input type="date" ng-model="myDate"> | ||
</p> | ||
<hr> | ||
|
||
<md-calendar ng-model="myDate"></md-calendar> | ||
|
||
<br><br> | ||
<br><br> | ||
<br><br> | ||
<p>Here is a bunch of stuff after the calendar</p> | ||
<p>Here is a bunch of stuff after the calendar</p> | ||
<p>Here is a bunch of stuff after the calendar</p> | ||
<p>Here is a bunch of stuff after the calendar</p> | ||
<p>Here is a bunch of stuff after the calendar</p> | ||
<p>Here is a bunch of stuff after the calendar</p> | ||
<input> | ||
|
||
</md-content> | ||
</div> |
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,12 @@ | ||
angular.module('calendarDemo1', ['ngMaterial']) | ||
.controller('AppCtrl', function($scope) { | ||
$scope.title = 'Calendar demo'; | ||
$scope.myDate = new Date(); | ||
|
||
$scope.adjustMonth = function(delta) { | ||
$scope.myDate = new Date( | ||
$scope.myDate.getFullYear(), | ||
$scope.myDate.getMonth() + delta, | ||
$scope.myDate.getDate()); | ||
}; | ||
}); |
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 @@ | ||
/** Demo styles for mdCalendar. */ |