Last active
August 29, 2015 14:26
-
-
Save hodak/8bfe4d78c9ce4319c485 to your computer and use it in GitHub Desktop.
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
$scope.markers = [ | |
{ | |
day: moment(), | |
marker: "tutoti" | |
}, | |
{ | |
day: moment().add('day', 2), | |
marker: "tutotite" | |
} | |
] | |
$scope.mark = moment(); | |
$scope.optionsK = { months: 1 }; | |
$scope.addMarker = function() { | |
$scope.markers.push({day: $scope.mark, marker: 'new marker'}); | |
}; | |
<mighty-datepicker ng-model="mark" options="optionsK" markers="markers"></mighty-datepicker> | |
<button ng-click="addMarker()">Add marker on selected day</button> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment