<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: tt0686</title>
    <description>The latest articles on DEV Community by tt0686 (@tt0686).</description>
    <link>https://dev.to/tt0686</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F172206%2F2801e753-36d6-476d-b4c1-9cf7194b0621.png</url>
      <title>DEV Community: tt0686</title>
      <link>https://dev.to/tt0686</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tt0686"/>
    <language>en</language>
    <item>
      <title>Angular Dynamic Menu using Material design</title>
      <dc:creator>tt0686</dc:creator>
      <pubDate>Mon, 27 May 2019 08:48:17 +0000</pubDate>
      <link>https://dev.to/tt0686/angular-dynamic-menu-using-material-design-1kfh</link>
      <guid>https://dev.to/tt0686/angular-dynamic-menu-using-material-design-1kfh</guid>
      <description>&lt;p&gt;I want to create a dynamic menu, where the data is fetch from database for instance. Here is the &lt;a href="https://stackblitz.com/edit/angular-dmenu"&gt;https://stackblitz.com/edit/angular-dmenu&lt;/a&gt; project &lt;/p&gt;

&lt;p&gt;In the dynamic-menu.component.html in the StackBlitz project there are the dynamic solution and the static solution(that is commented). &lt;/p&gt;

&lt;p&gt;The static solution should be how the dynamic solution will be rendered after executes. &lt;br&gt;
If i just run with the static solution(uncomment and commented the dynamic) everything runs as expected, but if i try with the dynamic solution the menu does not work as expected (the main buttons stays on top of each other and the submenus do not display and work properly). &lt;br&gt;
Is this related with how ng-template affect the CSS styles ? &lt;br&gt;
Looking through Chrome developer tools i am able to see that the class="mat-menu-item ng-star-inserted" attribute in the dynamic version is added to the button for instance and this does not happen in the static version. I have try everything but i can not get it why is this happening. And how can i fix this. I am new to Angular but i want really understands how the frameworks works &lt;/p&gt;

&lt;p&gt;Thanks in advance &lt;/p&gt;

&lt;p&gt;Best regards&lt;/p&gt;

</description>
      <category>angular</category>
    </item>
  </channel>
</rss>
