1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: 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.

  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