1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

Angular with no intellisense when inline stating a object as component property

Discussão em 'Angular' iniciado por Davi Americo, Outubro 9, 2024 às 11:33.

  1. Davi Americo

    Davi Americo Guest

    Here is my component

    @Component({
    selector: 'app-inherited-style',
    standalone: true,
    imports: [CommonModule],
    template: `<div [ngStyle]="styleTyped">inherited-style works!</div>`,
    styleUrl: './inherited-style.component.css'
    })
    export class InheritedStyleComponent {
    @Input() styleTyped!:partial<CSSStyleDeclaration>;
    }



    So on other component I would use:

    <app-inherited-style [styleTyped]="{}">


    in order to have intellisense on styles like react does but I get:

    [​IMG]

    Is it some miss config or angular can't intellisense a object on inline property bind statements ?

    Continue reading...

Compartilhe esta Página