title: How i can close ng-template popup after form into popap is submitted?
body: <p>I use last Angular version and ng-bootstrap to created some popup in my main component:</p>
  
  <pre><code>            &lt;ng-template #content let-c="close" let-d="dismiss"&gt; 
                  &lt;div class="modal-body"&gt;
                      &lt;app-access-form&gt;&lt;/app-access-form&gt;
                  &lt;/div&gt;
                  &lt;div class="modal-footer"&gt;
                      &lt;button type="button" class="btn btn-outline-dark" (click)="c('Close click')"&gt;Close popup&lt;/button&gt;
                  &lt;/div&gt;
              &lt;/ng-template&gt;
  </code></pre>
  
  <p>Next, i created access-form module, like a:</p>
  
  <pre><code>&lt;form (ngSubmit)="onSubmit()" #accessForm="ngForm"&gt;
  &lt;div class="form-group"&gt;
      &lt;label for="status"&gt;Статус&lt;/label&gt;
      &lt;input type="number" class="form-control" id="status" name="status" required [(ngModel)]="model.status"&gt;
  &lt;/div&gt;
  
  &lt;button type="submit" class="btn btn-success"&gt;Save&lt;/button&gt;
  </code></pre>
  
  <p></p>
  
  <p>if form is submutted, i try to:</p>
  
  <pre><code>onSubmit(): void {
      this.submitted = true;
      this.accessService.addAccess(this.model).subscribe( () );
  }
  </code></pre>
  
  <p>accessService.addAccess send to API.</p>
  
  <p>How i can close popup after form is submit? Can i do this in different modules or not?</p>