title: 'post' only refers to a type, but is being used as a value here
body: <p>I am getting errors in this component.ts file at push(post).
  the error is 'post' only refers to a type, but is being used as a value here.</p>
  <pre><code>import { Component } from '@angular/core';
  import { post } from './comp/list/list.module';
  
  @Component({
    selector: 'app-root',
    templateUrl: './app.component.html',
    styleUrls: ['./app.component.css']
  })
  export class AppComponent {
  spost:post[]=[];
  
  onpostadd(){
    this.spost.push(post);
  }
  }
  </code></pre>
  <p>this is the model.ts file</p>
  <pre><code>export interface post {
  
    title: string;
    content : string;
  
  }
  </code></pre>