Open Closed

Angular: module through navitemsservice #655


User avatar
0
Esben_Dalgaard created
  • ABP Framework version: v3.3.0
  • UI type: Angular
  • Tiered (MVC) or Identity Server Seperated (Angular): no

Hi, I have added a new item into my right side navbar (topside really), through your NavItemsService. This works like a charm, and my dropdown shows up nicely. However, when I want to populate it, and thus use an ngFor in the html, it tells me: Can't bind to 'ngForOf' since it isn't a known property of 'div'. So as I debug through my code, I can see that the select.module.ts is never activated, so it seems my module isn't loaded with the component through NavItemsService. There isn't a clear way, that I can see, for me to lazy load it seperately, unless I've misunderstood how Angular works.

Maybe my module and component aren't properly connected?


3 Answer(s)
  • User Avatar
    0
    alper created
    Support Team Director

    @armanozak what do you think?

  • User Avatar
    0
    Esben_Dalgaard created

    Hah ha... Now don't laugh, but it was b/c i needed to import the module directly to app.module.ts, and restart the app, not just hot-reload :)

  • User Avatar
    0
    alper created
    Support Team Director

    this happens to many of us :)

Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11