Use of ui calendar in angularjs