AW-6046 Angular improvement
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
				
			This commit is contained in:
		@@ -1,7 +1,6 @@
 | 
			
		||||
import { Component, Output, ViewChild, EventEmitter, Input, ElementRef, HostListener } from '@angular/core';
 | 
			
		||||
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
 | 
			
		||||
import { NgbModal, NgbModalRef, NgbDateStruct, NgbCalendar, NgbDateAdapter } from "@ng-bootstrap/ng-bootstrap";
 | 
			
		||||
import { Component, ElementRef, EventEmitter, Input, Output, ViewChild } from '@angular/core';
 | 
			
		||||
import { NgbDateNativeAdapter } from '@farmmaps/common';
 | 
			
		||||
import { NgbDateStruct, NgbModal, NgbModalRef } from "@ng-bootstrap/ng-bootstrap";
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
const equals = (one: NgbDateStruct, two: NgbDateStruct) =>
 | 
			
		||||
@@ -52,7 +51,7 @@ export class SelectPeriodModalComponent {
 | 
			
		||||
  @Output() onCloseModal = new EventEmitter<any>();
 | 
			
		||||
  @Output() onSelect = new EventEmitter<{ startDate: Date, endDate: Date }>();
 | 
			
		||||
  
 | 
			
		||||
  constructor(private modalService: NgbModal, private calendar: NgbCalendar) { }
 | 
			
		||||
  constructor(private modalService: NgbModal) { }
 | 
			
		||||
 | 
			
		||||
  openModal() {
 | 
			
		||||
      //Timeout trick to avoid ExpressionChangedAfterItHasBeenCheckedError 
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user