Skip to content

TMJPEngineering/angular-sundial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  1. Download this and extract it to your project folder
  2. 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>
  1. 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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published