Angularjs Simple Datepicker directive example

Today now in this post i will be implement datepicker directive simply. Now In this example i will use ngDatepicker plugin. We are know that it is a very simple way to use and also integrate. It is also very flexible we can set the format and other option also. So now If you also need to add the datepicker then you can do this like as bellow example.

Now in this example i also add /css/ngDatepicker.css path on link so.

you want to download css file then click here : Click Here and

Also i am also include /js/ngDatepicker.min.js script tag so if you want download js file then click here : Click Here


<html lang="en-US">
<link rel="stylesheet" href="">
<link rel="stylesheet" href="">
<link rel="stylesheet" href="/css/ngDatepicker.css">
<script src=""></script>
<script src=""></script>
<script src="/js/ngDatepicker.min.js"></script>
<div ng-app="myApp" ng-controller="customersCtrl">
  <h2 class="text-center">Angularjs Simple Datepicker directive example code with Demo
      <ng-datepicker  ng-model="ctrl.date2" view-format="DD-MM-YYYY">
  var app = angular.module('myApp', ['jkuri.datepicker']);
  app.controller('customersCtrl', function($scope, $http) { 

Read Also : How to Create Custom Blade Directive in Laravel?

Thanks for read. I hope it help you. For more you can follow us on facebook.