[sidebar] Skeleton up
authorErik Haider Forsén <erikhf@ifi.uio.no>
Thu, 19 Nov 2015 17:41:50 +0000 (18:41 +0100)
committerErik Haider Forsén <erikhf@ifi.uio.no>
Thu, 19 Nov 2015 17:41:50 +0000 (18:41 +0100)
src/components/app.html
src/components/app.ts
src/components/sidebar/sidebar.html [new file with mode: 0644]
src/components/sidebar/sidebar.ts [new file with mode: 0644]

index 9ef7c51..803b227 100644 (file)
@@ -5,7 +5,8 @@
         <mou-filter></mou-filter>
     </div>
 
-    <mou-map #map></mou-map>
+    <mou-map (newactive)="sidebar.update($event)" #map></mou-map>
+    <mou-sidebar #sidebar></mou-sidebar>
 
 </div>
 
index 7feefc3..3ce1467 100644 (file)
@@ -3,6 +3,7 @@ import {Component, View, bootstrap, provide, ELEMENT_PROBE_PROVIDERS} from 'angu
 import {Map} from './map/map';
 import {Search} from "./search/search";
 import {Filter} from "./filter/filter";
+import {Sidebar} from "./sidebar/sidebar";
 
 declare var System:any;
 
@@ -10,7 +11,7 @@ declare var System:any;
     {
         selector: 'mou-app',
         templateUrl: './components/app.html',
-        directives:[Filter, Map, Search]
+        directives:[Filter, Map, Search, Sidebar]
     })
 
 
diff --git a/src/components/sidebar/sidebar.html b/src/components/sidebar/sidebar.html
new file mode 100644 (file)
index 0000000..d0ac134
--- /dev/null
@@ -0,0 +1 @@
+<div>Yolo world!</div>
\ No newline at end of file
diff --git a/src/components/sidebar/sidebar.ts b/src/components/sidebar/sidebar.ts
new file mode 100644 (file)
index 0000000..f3e46ab
--- /dev/null
@@ -0,0 +1,17 @@
+import {Component, CORE_DIRECTIVES,} from 'angular2/angular2';
+import {Http} from 'angular2/http';
+
+
+@Component({
+    selector: 'mou-sidebar',
+    directives: [CORE_DIRECTIVES],
+    templateUrl: './components/sidebar/sidebar.html'
+})
+export class Sidebar {
+    http: Http;
+
+    constructor(http:Http){
+        this.http = http;
+    }
+}
+