Ngrx 6.1.0 - Select is deprecated - What is the new syntax?

前端 未结 3 2044
难免孤独
难免孤独 2021-01-01 11:12

The following ngrx select is deprecated.

this.store.select(state => state.academy.academy).subscribe((academy) => {
    this.academy = academy;
});
         


        
3条回答
  •  -上瘾入骨i
    2021-01-01 11:38

    As per NgRx 7, the select method is un-deprecated.

    For more info, see the associated Pull Request.

提交回复
热议问题