i am trying to create a variable with Object type and initialised it with a property. but when i try to access that property it shows error 'Property ____ does not exist on type Object'. I had already searched for this and i found there are 3 type object , Object and {}. I can access my properties with {} but not with object and Object.
export class customDirective {
configg:Object={
qSelector:'.card-text'
};
@HostListener('mouseover') onmouseover(){
var element =this.el.nativeElement.querySelector(this.configg.qSelector);
this.ren.setElementStyle(element, 'display', 'block');
this.isHovering = true;
}
}