ngrx-store

    1熱度

    1回答

    我想使用REDUX模式來構建我的下一個Angular應用程序,並且出於某種原因我無法導入所需的庫。 app.module.ts imports: [ BrowserModule, FormsModule, HttpModule, StoreModule.forRoot({ user }) ], 在一個新鮮的角度intstall還是我原來的應用我不斷收到這些錯誤 ERROR in C:/Users/

    0熱度

    1回答

    我試圖將我的ngrx/Store聲明爲測試容器組件的spec文件。所以我導入存儲第一和beforeEach內執行以下操作: import {Store} from '@ngrx/store'; beforeEach(async(() => { TestBed.configureTestingModule({ declarations: [Notifica

    3熱度

    1回答

    我試圖使用ngrx store + ng效果爲我的應用程序編寫登錄流。我已經設法編寫它,它在快樂scenerio中工作,但是當用戶向表單輸入錯誤的值時,服務器用401響應,下一次登錄嘗試不起作用。我已經讀過,爲了不「破壞」流,使用observables時必須捕獲異常,但據我所知,我趕上了異常並仍在工作。 下面的代碼; export class LoginComponent { logg

    1熱度

    1回答

    我有一個簡單的應用程序 沒有NGRX 組件 @Component({ selector: 'app-competition', templateUrl: './component.html', styleUrls: ['./component.css'] }) export class Component implements OnInit { constru

    0熱度

    1回答

    我想從一個組件傳遞一個帖子到另一個組件有一個編輯窗體。外部組件獲取帖子並傳遞給內部組件進行編輯,但由於某種原因,它不通過,所以我得到一堆未定義的錯誤。 外部構件的HTML看起來像這樣: <wie-edit-post-form *ngIf="post | async; else loading"></wie-edit-post-form> <ng-template #loading> <

    4熱度

    1回答

    我從一個組件 this.store.dispatch({type : STORE_TEAMCREST , payload : team.crestURI}); 派遣行動,並在其他設備我從應用商店選擇 this.store.select(state => state.table.teamCrest).subscribe(data => this.teamCrest = data); 如果我的

    2熱度

    1回答

    我想從我的效果中多次發送一個動作,爲此目的我使用concatMap,但由於我正在調度相同的動作,它將被下一次發送取消。是否有辦法在其先前的調度完成時分派一個操作。 下面的代碼將有助於更好地理解問題。 @Effect() setCategory$ = this.actions$ .ofType(GET_SESSION_AD_SUCCESS) .concatMap((ac

    1熱度

    1回答

    我正在嘗試使用Angular 4開發基本的NativeScript應用程序。我還將ngrx商店和firebase用作實時數據庫。 當我使用樣本數組並更新商店並未與firebase集成時,該程序正常工作。 UI也得到更新。 let value = [ { "description": "Groups discussing about Technology", "ca

    0熱度

    1回答

    是否有命令從ngrx v-2升級到ngrx v4就像我們將Angular 2.0版升級到4.0版一樣? 我試過尋找一個,但唯一的東西我在git回購以及其他博客是這樣的npm install @ngrx/core @ngrx/store --save。 我知道我可以卸載ngrx v2.0然後運行這個命令。但是有沒有其他方法可以直接做到這一點。我正在使用角度cli。 我目前的ngrx依賴關係。 我想將

    0熱度

    1回答

    總的來說Redux noob在這裏,我有點困難從我的視圖中獲取我的數據用於商店。這裏是我的操作,減速等 genre.model.ts export interface Genre { id: string; title: string; description: string; slug: string; error: string; } e