added type doc to menu related files

This commit is contained in:
lotte
2018-12-11 15:47:41 +01:00
parent c0a4fdc797
commit e13d743e32
35 changed files with 765 additions and 231 deletions

View File

@@ -10,12 +10,20 @@ import { MenuID } from '../shared/menu/initial-menus-state';
@Injectable()
export class NavbarEffects {
menuID = MenuID.PUBLIC;
/**
* Effect that collapses the public menu on window resize
* @type {Observable<CollapseMenuAction>}
*/
@Effect() resize$ = this.actions$
.pipe(
ofType(HostWindowActionTypes.RESIZE),
map(() => new CollapseMenuAction(this.menuID))
);
/**
* Effect that collapses the public menu on reroute
* @type {Observable<CollapseMenuAction>}
*/
@Effect() routeChange$ = this.actions$
.pipe(
ofType(fromRouter.ROUTER_NAVIGATION),