Angular Materials won't apply styles to components

后端 未结 1 716
感情败类
感情败类 2021-01-25 04:09

Here is a simple snippet:



        
相关标签:
1条回答
  • 2021-01-25 04:24

    Your code should work as expected. See the below code,

    <div class="profilebuttoncontainer">
         <button md-button class="temp-class">Click me!</button>
    </div>
    

    Note : Add the stylesheet reference at the component level using below line

    styleUrls:[`....`]
    

    LIVE DEMO

    0 讨论(0)
提交回复
热议问题