Fixed placeholder for filter (pair programming)
authorErik Haider Forsén <erikhf@ifi.uio.no>
Thu, 12 Nov 2015 10:32:52 +0000 (11:32 +0100)
committerErik Haider Forsén <erikhf@ifi.uio.no>
Thu, 12 Nov 2015 10:32:52 +0000 (11:32 +0100)
src/components/app.ts
src/components/filter/filter.html [new file with mode: 0644]
src/components/filter/filter.ts [new file with mode: 0644]

index 27ba52e..06aeb64 100644 (file)
@@ -2,6 +2,7 @@ import {HTTP_PROVIDERS} from 'angular2/http';
 import {Component, View, bootstrap, provide} from 'angular2/angular2';
 import {Map} from './map/map';
 import {Search} from "./search/search";
+import {Filter} from "./filter/filter";
 
 declare var System:any;
 
@@ -9,7 +10,7 @@ declare var System:any;
     {
         selector: 'mou-app',
         templateUrl: './components/app.html',
-        directives:[Map, Search]
+        directives:[Filter, Map, Search]
     })
 
 
diff --git a/src/components/filter/filter.html b/src/components/filter/filter.html
new file mode 100644 (file)
index 0000000..e3b16cd
--- /dev/null
@@ -0,0 +1 @@
+<div style="width: 500px; height:50px; background: cadetblue; ">Filter</div>
\ No newline at end of file
diff --git a/src/components/filter/filter.ts b/src/components/filter/filter.ts
new file mode 100644 (file)
index 0000000..b554b3c
--- /dev/null
@@ -0,0 +1,17 @@
+import {Component, CORE_DIRECTIVES} from 'angular2/angular2';
+
+@Component({
+    selector: 'mou-filter',
+    directives: [CORE_DIRECTIVES],
+    templateUrl: './components/filter/filter.html'
+})
+
+export class Filter {
+    writeYolo() {
+        console.log("yol");
+    }
+
+}
+
+
+