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, 4 months ago by
ahannan.
-
This topic was modified 2 years, 4 months ago by
ahannan.
-
This topic was modified 2 years, 4 months ago by
ahannan.
-
This topic was modified 2 years, 4 months ago by
ahannan.