]> git.uio.no Git - u/erikhf/frm.git/commitdiff
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 27ba52e735fb7853c16ddfdfbd20e833008f23f6..06aeb64468f1348e2d04bee92a6f3f032ed16b2b 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");
+    }
+
+}
+
+
+