Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
ngOnInit() {
this.todos$ = this.todosQuery.selectVisibleTodos$;
this.activeFilter$ = this.todosQuery.selectVisibilityFilter$;
this.checkAll$ = this.todosQuery.checkAll$.pipe(map(numCompleted => numCompleted && numCompleted === this.todosQuery.getCount()));
this.stateHistory = new StateHistoryPlugin(this.todosQuery);
this.stateHistoryEntity = new EntityStateHistoryPlugin(this.todosQuery);
}