angular-sundial
v1.0.0
Published
A simple angular service that enhances the date object functionality of javascript to provide a more easy and robust api for getting the date and time
Downloads
4
Maintainers
Readme
Angular Sundial
A simple angular service that enhances the date object functionality of javascript to provide a more easy and robust api for getting the date and time
Installation
- Download this and extract it to your project folder
- Make sure to include angular.js and angular-sundial.js to your index page
<script src="angular.js"></script>
<script src="angular-sundial.js"></script>
- Add the ngDraggable module to your main angular module
angular.module('myApp', ['ngSundial']);
Demo
After installation, just open the index.html to view the demo page
Usage
Just inject the sundial service in your controller and call the available apis
app.controller('MainController', function (sundial) {
var date = "Oct 30, 2016 11:15 PM";
console.log('Date:', sundial.getDate(date));
});
TODO
- API Documentation
- Unit test