Angularjs Datepicker

This topic contains 0 replies, has 1 voice, and was last updated by  ahannan 2 years, 2 months ago.

  • Author
    Posts
  • #190

    ahannan
    Keymaster

    Example:

    Write code to develop search admission form:





    Write a angularjs directive that will popup search addmission form.
    Write code to set min/max date

    angular.module(‘myApp’)
    .directive(‘student’, function AdmissionSearchDrctv () {

    return {
    restrict: ‘EA’,
    replace: true,
    scope: true,
    templateUrl: “admission.search.html”,
    controllerAs: ‘student’,
    controller: function ( $scope) {

    var currentDate = new Date();
    $scope.admissionDateMaxLimit = currentDate.getMonth() + 1 + ‘/’ + currentDate.getDate() + ‘/’ + currentDate.getFullYear();
    $scope.admissionDateMinLimit = currentDate.getMonth() + ‘/’ + currentDate.getDate() + ‘/’ + currentDate.getFullYear();

    this.findAdmissions = function () {
    —-
    —-
    }
    };
    });

    • This topic was modified 2 years, 2 months ago by  ahannan.
    • This topic was modified 2 years, 2 months ago by  ahannan.
    • This topic was modified 2 years, 2 months ago by  ahannan.
    • This topic was modified 2 years, 2 months ago by  ahannan.

You must be logged in to reply to this topic.