'modal' is not a known element: in angular2
<p>I tried using model box in angular2,i know hoe to use it with systemConfig.js but now in my new project i have webpack.js and i am not sure how to use with it.
my component,</p>

<pre><code> import {Component,OnInit} from "@angular/core";
import {ModalModule} from "ng2-modal";
 import { Http, Headers } from '@angular/http';

@Component({
    selector: '[tables-basic]',
    template: `
&lt;div class="row"&gt;
    &lt;button (click)="myModal.open()"&gt;open my modal&lt;/button&gt;
    &lt;modal #myModal&gt;
        &lt;modal-header&gt;
            &lt;h1&gt;Modal header&lt;/h1&gt;
        &lt;/modal-header&gt;
        &lt;modal-content&gt;
            Hello Modal!
        &lt;/modal-content&gt;
        &lt;modal-footer&gt;
            &lt;button class="btn btn-primary" (click)="myModal.close()"&gt;close&lt;/button&gt;
        &lt;/modal-footer&gt;
    &lt;/modal&gt;
&lt;/div&gt;
    `
})
export class TablesBasic implements OnInit {
  students:any;
  constructor(public http: Http) {


    }
    ngOnInit() {
       this.getstudents();
    }
     getstudents() {
        var headers = new Headers();
        headers.append('Content-Type', 'application/json')
        this.http.get('http://localhost:3009/api/auth/getstudents', { headers: headers })
            .subscribe(
            result =&gt; {
                if (result.json().error_code == 0) {
                   this.students = result.json().result;
                }
                else {
                    this.students = result.json().result;
                }
            })
    }
}
</code></pre>

<p>my error,
     Error: Template parse errors:
    'modal' is not a known element:
    1. If 'modal' is an Angular component, then verify that it is part of this module.
    2. If 'modal' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schema' of this component to suppress this message. ("
    
        open my modal
        [ERROR ->]
            
                <h1>Modal header</h1>
Can anyone please suggest me help.</p>