Get 2024 Templates Mega Bundle!14 Bootstrap, Vue & React Templates + 3 Vector Sets
Get for 99$

Menu Dropdown is not working


I fetched tabs from the database using ngFor loop. but if I used ngFor loop then ktMenu dropdown which I added in tab-content is not working. I used Metronic theme.
I tried with this example:- https://preview.keenthemes.com/metronic8/demo1/documentation/general/menu.html?_ga=2.69169046.68420783.1641306162-312851748.1640584463#basic
It is working properly without using ngFor. but if I used ngFor for tabs, then dropdown is not show
Can anyone help me with this?


Text formatting options
Submit

Replies (14)


Hi,

If you use ngFor loop, the dropdown HTML is added dynamically in view level and need to be initialized.

Please check here, we did reinitialization for dropdown in aside menu.
/src/app/_metronic/layout/components/aside/aside.component.ts


MenuComponent.reinitialization()


Thanks



Thank you very much, I've been trying to solve this for hours



Discover the exquisite world of Ammara Khan's luxury dresses. Elevate your style with the finest pakistani luxury formals and indulge in the opulence of luxury clothing.



Explore the latest Pakistani Party Dresses online. ECS presents a fantastic collection of ladies' party dresses online all over Pakistan at affordable prices. So, grab your favorite dress online today.



Celebrate your special day in style with our collection of wedding formals. Discover the perfect wedding dress that embodies elegance and grace embrace the charm of Pakistani wedding dresses. Shop now to get the best formal dresses at our store Gulaal.



Shop our collection of luxurious luxury formals at Chahyay. Find the perfect outfit for your next special occasion with our selection of high-quality luxury formals.



Jazmin offers the best summer dress design online in Pakistan. Discover a large num of the latest design dresses with unique patterns. Shop now and embrace the summer season in style.



Discover the ideal bags for women at affordable prices. Pick from a large assortment of chic and useful bags to complete your look and hold all of your necessities. Shop now to get a perfect handbag.



Shop for unique and elegant floral jewellery from our wide selection of designs. Our handcrafted pieces are perfect for any occasion and feature a variety of materials including gold, silver, pearls, crystals, and more. Find the perfect piece today!



Shop the latest collection of women shoes online at Borjan. Explore a wide range of trendy and comfortable footwear options to elevate your style.



Find the perfect pair of men trousers in pakistan at Nayza. We offer a wide range of stylish and trendy designs to suit your needs. Explore our collection now!



Pakistani formal dresses from Afrozeh, exude grace, style, and a touch of cultural richness. Step into timeless fashion and make a statement with our stunning selection.

Get a dress made of silk dress designs from Mohagni. For your comfort, we supply both stitched and unstitched silk dress styles. You may now choose from a range of silk dress designs. Enjoy the appeal of silk dress patterns that are printed and embroidered by wearing suits made of silk.1


Text formatting options
Submit
Text formatting options
Submit