Добрый день! Подскажите, как исправить ошибку?
app.component.ts:
import { Component } from '
@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent {
title = 'Dinamic Title'
number = 42
arr = [1,2,3]
obj = {a:1, b: {c:2}}
inputValue = ''
constructor() {
}
onInput(event?) {
console.log('Event', event)
}
}
При сборке:
Build at: 2021-06-16T07:28:01.115Z - Hash: 927e0508b83571e1052b - Time: 12746ms
Error: src/app/app.component.ts:21:11 - error TS7006: Parameter 'event' implicitly has an 'any' type.