本文整理汇总了TypeScript中backlive/service.AppService类的典型用法代码示例。如果您正苦于以下问题:TypeScript AppService类的具体用法?TypeScript AppService怎么用?TypeScript AppService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了AppService类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: constructor
constructor(appService: AppService, strategyService: StrategyService) {
super(appService);
this.strategyService = strategyService;
this.strategyService.getBacktests().then((strategies: Strategy[]) => this.loadStrategies(strategies));
var items = [
{ icon: "search", component: SearchBarComponent },
{ icon: "video", onClick: () => this.filterMenu(), tooltip:'test' },
{ icon: "list", onClick: () => this.filterMenu() },
{ icon: "settings", component: null }
];
appService.notify(AppEvent.SlidingNavItems, items);
}
示例2: constructor
constructor(appService: AppService, userService: UserService) {
appService.navigate(Route.Dashboard);
}
示例3: ngOnDestroy
ngOnDestroy () {
this.appService.unsubscribe(this);
}
示例4: subscribeEvent
subscribeEvent (eventName: string, callback: Function) {
this.appService.subscribe(eventName, this, callback);
}