title: I can't set body background image in angular
body: <p>If i put this code in the global css styles then it is working.The background image is set on the body of the page</p>
  
  <pre><code>body, html {
      height: 100%;
    }
  
    body {
    background-image: url("../../assets/img/p.jpg");
    background-size: cover;
    background-attachment: fixed;
    }
  
  </code></pre>
  
  <p>But if i try the same on some not global css style , for example of some copomnent then it is not working.I ve checked the path and it is correct.Also the styles are working for everything except for the body background image.</p>
  
  <p>Why is this happening?</p>