#Function not enables menus

13 messages · Page 1 of 1 (latest)

deep sigil
#

do you see all the logs? 1 true or false and 2?
can you show us the HTML code?

alpine kite
#

first there is some asynchronious logic inside your function

#

your function will exit before tetoService has completed

#

never good to mix both

#

what is the change detection strategy of your component?

#

can you show me the @component decorator?

#

and the best will be to have the entire component with its html

#

but the best would be to return an observable and use the async pipe inside the template

#

that way, when your http call return, it will update the list and the template will get notified and refresh the view.

deep sigil
#

can you show the code of how you show/hide the 'Inbox' item?

muted meadow
#

HI amd_ads if you want to explaint this in portuguese go to voice chanel 2

deep sigil
#

looks like you have to move

   if (items.length) {
      this.menu.push({
        title: 'Caixa de Entrada',
        items: items
      });
    }
``` inside your `subscribe()`
#

I hope you understand why this "error" is happening, to avoid similar errors in the future. Otherwise I can try to explain it to you