1 import {Component, View, CORE_DIRECTIVES} from 'angular2/angular2';
2 import {Observable} from 'angular2/angular2';
3 import {Pipe} from 'angular2/angular2';
4 import {Http} from 'angular2/http';
5 import {Livesearch} from './livesearch';
8 selector: 'mou-search',
9 directives: [CORE_DIRECTIVES],
10 // templateUrl: './components/search/search.html'
11 template: '{{ 10 | livesearch }}',
19 constructor(http: Http){
20 this.data = http.get('items.json');