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?

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

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

    @armanozak what do you think?

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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 :)

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    alper created
    Support Team Director

    this happens to many of us :)

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 16, 2026, 14:50
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.