Skip to content

Commit 12bca04

Browse files
committed
fix(project): removed unwanted logs #324
1 parent 007b578 commit 12bca04

File tree

4 files changed

+2
-20
lines changed

4 files changed

+2
-20
lines changed

projects/angular-material-extensions/google-maps-autocomplete/schematics/ng-add/index_spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ describe('schematics', () => {
1111
const runner = new SchematicTestRunner('schematics', collectionPath);
1212
const tree = await runner.runSchematicAsync('schematics', {}, Tree.empty());
1313
tree.subscribe(tree=>{
14-
console.log(tree);
1514
expect(tree.files).toEqual([]);
1615
});
1716
});

projects/angular-material-extensions/google-maps-autocomplete/src/lib/component/mat-search-google-maps-autocomplete/mat-search-google-maps-autocomplete.component.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export class MatSearchGoogleMapsAutocompleteComponent implements OnInit, Control
102102
set value(value: GermanAddress) {
103103
this._value = value;
104104
this.propagateChange(this.value);
105-
console.log('setValue', this._value);
105+
// console.log('setValue', this._value);
106106
}
107107

108108
ngOnInit() {
@@ -128,8 +128,6 @@ export class MatSearchGoogleMapsAutocompleteComponent implements OnInit, Control
128128
.valueChanges
129129
.pipe(distinctUntilChanged(), debounceTime(400), takeUntil(this._unsubscribeAll))
130130
.subscribe(streetName => {
131-
console.log('custom input for street Name', streetName);
132-
console.log('custom input - new german address streetName', this.value);
133131
!this.value ? this.value = {streetName} : this.value.streetName = streetName;
134132
this.value.displayAddress = this.parseDisplayAddress();
135133
this.propagateChange(this.value);
@@ -140,7 +138,6 @@ export class MatSearchGoogleMapsAutocompleteComponent implements OnInit, Control
140138
.pipe(distinctUntilChanged(), debounceTime(400), takeUntil(this._unsubscribeAll))
141139
.subscribe(streetNumber => {
142140
!this.value ? this.value = {streetNumber} : this.value.streetNumber = streetNumber;
143-
console.log('custom input - new german address streetNumber', this.value);
144141
this.value.displayAddress = this.parseDisplayAddress();
145142
this.propagateChange(this.value);
146143
});
@@ -150,7 +147,6 @@ export class MatSearchGoogleMapsAutocompleteComponent implements OnInit, Control
150147
.pipe(distinctUntilChanged(), debounceTime(400), takeUntil(this._unsubscribeAll))
151148
.subscribe(postalCode => {
152149
!this.value ? this.value = {postalCode} : this.value.postalCode = postalCode;
153-
console.log('custom input - new german address postalCode', this.value);
154150
this.value.displayAddress = this.parseDisplayAddress();
155151
this.propagateChange(this.value);
156152
});
@@ -160,7 +156,6 @@ export class MatSearchGoogleMapsAutocompleteComponent implements OnInit, Control
160156
.pipe(distinctUntilChanged(), debounceTime(400), takeUntil(this._unsubscribeAll))
161157
.subscribe(vicinity => {
162158
!this.value ? this.value = {vicinity} : this.value.vicinity = vicinity;
163-
console.log('custom input - new german address vicinity', this.value);
164159
this.value.displayAddress = this.parseDisplayAddress();
165160
this.propagateChange(this.value);
166161
});
@@ -170,7 +165,6 @@ export class MatSearchGoogleMapsAutocompleteComponent implements OnInit, Control
170165
.pipe(distinctUntilChanged(), debounceTime(400), takeUntil(this._unsubscribeAll))
171166
.subscribe(locality => {
172167
!this.value ? this.value = {locality} : this.value.locality = locality;
173-
console.log('custom input - new german address locality', this.value);
174168
this.value.displayAddress = this.parseDisplayAddress();
175169
this.propagateChange(this.value);
176170
});

projects/angular-material-extensions/google-maps-autocomplete/src/lib/directives/mat-google-maps-autocomplete.directive.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ export class MatGoogleMapsAutocompleteDirective implements OnInit, ControlValueA
9595
}
9696

9797
ngOnInit(): void {
98-
console.log('ngOnInit');
9998
if (isPlatformBrowser(this.platformId)) {
10099
const options: AutocompleteOptions = {
101100
// types: ['address'],
@@ -113,18 +112,12 @@ export class MatGoogleMapsAutocompleteDirective implements OnInit, ControlValueA
113112

114113
this.autoCompleteOptions = Object.assign(this.autoCompleteOptions, options);
115114
this.initGoogleMapsAutocomplete();
116-
117-
// console.log('this.ngControl.value', this.ngControl?.control?.value)
118-
// console.log('this.ngControl.value', this.ngControl.control.setValue('test'))
119-
// this.cf.markForCheck();
120115
}
121116
}
122117

123118
@HostListener('change')
124119
onChangeInputValue(): void {
125-
console.log('in change InputTextFilterDirective');
126120
const value = (this.elemRef.nativeElement as HTMLInputElement)?.value;
127-
console.log('value --> ', value)
128121
this.value = value;
129122
}
130123

@@ -216,11 +209,8 @@ export class MatGoogleMapsAutocompleteDirective implements OnInit, ControlValueA
216209

217210
writeValue(obj: any): void {
218211
if (obj) {
219-
console.log('obj --> ');
220212
this.value = obj;
221-
// this.cf.markForCheck();
222213
}
223-
console.log('write value', this.value);
224214
}
225215

226216
}

src/app/app.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,10 @@ export class AppComponent implements OnInit {
4848
}
4949

5050
onAutocompleteSelected(result: PlaceResult) {
51-
console.log('onAddressSelected: ', result);
51+
// console.log('onAddressSelected: ', result);
5252
}
5353

5454
onLocationSelected(location: Location) {
55-
console.log('onLocationSelected: ', location);
5655
this.latitude = location.latitude;
5756
this.longitude = location.longitude;
5857
}

0 commit comments

Comments
 (0)