Fixed events between components
[u/erikhf/frm.git] / src / components / navbar / navbar.ts
index b34ea77..6591410 100644 (file)
@@ -1,19 +1,22 @@
-import {Component,View, CORE_DIRECTIVES} from 'angular2/angular2';
+import {Component,View,EventEmitter, CORE_DIRECTIVES} from 'angular2/angular2';
 import {Search} from "../search/search";
 
 @Component({
     selector: 'mou-navbar',
     directives: [CORE_DIRECTIVES, Search],
     templateUrl: './components/navbar/navbar.html',
+    events:['outevent'],
     styleUrls: ['./components/navbar/navbar.css']
 })
 
 export class Navbar {
+    constructor(){
+        this.outevent = new EventEmitter();
+    }
 
-
-
-
-
+    inevent(e){
+        this.outevent.next(e);
+    }
 }