diff --git a/src/components/calendar/demoBasicUsage/index.html b/src/components/calendar/demoBasicUsage/index.html new file mode 100644 index 00000000000..bd9ce4f9486 --- /dev/null +++ b/src/components/calendar/demoBasicUsage/index.html @@ -0,0 +1,28 @@ +
+ +

{{title}}

+ +
+

+

Development tools

+ + + +

+
+ + + +

+

+

+

Here is a bunch of stuff after the calendar

+

Here is a bunch of stuff after the calendar

+

Here is a bunch of stuff after the calendar

+

Here is a bunch of stuff after the calendar

+

Here is a bunch of stuff after the calendar

+

Here is a bunch of stuff after the calendar

+ + +
+
diff --git a/src/components/calendar/demoBasicUsage/script.js b/src/components/calendar/demoBasicUsage/script.js new file mode 100644 index 00000000000..d4e813d1cf2 --- /dev/null +++ b/src/components/calendar/demoBasicUsage/script.js @@ -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()); + }; + }); diff --git a/src/components/calendar/demoBasicUsage/style.css b/src/components/calendar/demoBasicUsage/style.css new file mode 100644 index 00000000000..1156334a7f7 --- /dev/null +++ b/src/components/calendar/demoBasicUsage/style.css @@ -0,0 +1 @@ +/** Demo styles for mdCalendar. */