2016-10-18 3 views
0

Как связать основное подкомпоненты в шаблоне с меню свойств?Угловая 2: как связать подкомпонент с свойством

import { Component } from '@angular/core'; 

import { MainMenuComponent } from './main-menu.component'; 

@Component({ 
    selector: 'my-app', 
    template: ` 
    <div class="centered"> 
     <mainmenu></mainmenu> 
    </div> 
    ` 
}) 
export class AppComponent { 
    menu: MainMenuComponent; 
} 

ответ

Смежные вопросы