angular-material-npfixed
Version:
The Angular Material project is an implementation of Material Design in Angular.js. This project provides a set of reusable, well-tested, and accessible Material Design UI components. Angular Material is supported internally at Google by the Angular.js, M
13 lines (11 loc) • 388 B
JavaScript
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());
};
});