title: Load ngModule and its components based on conditional in Angular
body: <p>I'm new in angular and I was wondering if it's possible to load and module and its components I made based on a conditional on the app.module or where would it be the best place to do this.</p>
  
  <p>Basically I want to do something like:</p>
  
  <pre><code>if(user.deparment === 'coms') {
    //Use the communications.module and its components
  }
  </code></pre>
  
  <p>I have attached some picture so you guys can see the structure of the app. if necessary I can add the code instead of a picture.</p>
  
  <p>App.module picture
  <a href="https://i.stack.imgur.com/083Mq.png" rel="noreferrer"><img src="https://i.stack.imgur.com/083Mq.png" alt="enter image description here"></a></p>
  
  <p>Communications.module picture
  <a href="https://i.stack.imgur.com/8Rvyi.png" rel="noreferrer"><img src="https://i.stack.imgur.com/8Rvyi.png" alt="enter image description here"></a></p>