1.NgRx: selectorblog
https://ultimatecourses.com/blog/ngrx-store-understanding-state-selectorsget
2. 在一個module下的各個組件能夠declares申明,則能夠直接使用。module
但不一樣的module下的組件引用,如A module下的A1組件的template TA1中使用裏B Module下B1組件的TB1,即TA1select
中使用裏裏TB1的selector,這樣B Module不只在declares中申明B1,並且要exports導出B1組件,對外部使用。引用