February 2019
Beginner
694 pages
18h 4m
English
Now that the AppComponent class has references to its child components, we can focus on the implementation of the IMediatorImpl interface in this class, as follows:
export class AppComponent implements IMediatorImpl { ... existing code ... showNavPanel() { this.sideNav.showNav(); document.getElementById('main').style.marginLeft = "250px"; } hideNavPanel() { this.sideNav.closeNav(); document.getElementById('main').style.marginLeft = "0px"; } showDetailPanel() { this.rightScreen.openRightWindow(); document.getElementById('main').style.transform = "translateX(-100%)"; } hideDetailPanel() { this.rightScreen.closeRightWindow(); document.getElementById('main').style.transform = "translateX(0%)"; } changeShowHideSideButton(fromClass: ...Read now
Unlock full access