51dc703fd08b71d68b3ac5ab1cdffd7abac7fa1a
[u/erikhf/frm.git] / src / components / search / search.ts
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';
6
7 @Component({
8     selector: 'mou-search',
9     directives: [CORE_DIRECTIVES],
10 //    templateUrl: './components/search/search.html'
11     template: '{{ 10 | livesearch }}',
12     pipes: [Livesearch]
13 })
14
15
16
17 export class Search {
18     data: Object;
19     constructor(http: Http){
20         this.data = http.get('items.json');
21     }
22 }
23
24