Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

Angular -> Demo 1 -> Dynamic Aside Menu Configuration


Hello,
First of all congratulations for the great work on Metronic.
I'm using the Demo 1 version of Angular, and I would like to know if it's possible for you to add a dynamic configuration for the aside menu in which it was only necessary to add an array with items with the title, translation, page, etc, and with this configuration the aside menu was generated.
I'm asking this because Metronic 7 has this dynamic aside menu config, and I loved it. Is it possible to add for Metronic 8?

Thank you very much,
Luís Campos


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (5)


hello ..
there is any update ? looking to use dynamic aside menu in metronic 8 demo1


Hello, I think not. I built my own dynamic component that reads from a config. The component looks like this:

<ng-container *ngIf="menuConfig && menuConfig.items">
  <ng-container *ngFor="let item of menuConfig.items">
    <ng-container
      *ngIf="item.type === 'section'"
      [ngTemplateOutlet]="menuItemSectionTemplate"
      [ngTemplateOutletContext]="{ item }"
    ></ng-container>
    <ng-container
      *ngIf="item.type === 'separator'"
      [ngTemplateOutlet]="menuItemSeparatorTemplate"
    ></ng-container>
    <ng-container
      *ngIf="item.type === 'level1'"
      [ngTemplateOutlet]="menu1LevelTemplate"
      [ngTemplateOutletContext]="{ item }"
    ></ng-container>
  </ng-container>
</ng-container>

<ng-template #menu1LevelTemplate let-item="item">First Item</ng-template>

<ng-template #menu2LevelTemplate let-item="item">Second Item</ng-template>

<ng-template #menuItemSeparatorTemplate>
  <div class="menu-item">
    <div class="menu-content">
      <div class="separator mx-1 my-4"></div>
    </div>
  </div>
</ng-template>

can you explain it more it will be helpful for me as I also have to implement it



Hi,

Thank you for your warm words.
About Dynamic Aside Menu, we don't have this in version 8, but for sure, it will be implemented in the next updates. Right now can't give you ETA, but the task is already in our backlog.

Regards,
Keenthemes support



Thank you very much for the reply, I'll be waiting.
Good work!


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(