ngrx

    6热度

    2回答

    结构1 reducers index.ts //Combine all reducers user.reducer.ts product.reducer.ts actions index.ts //Combine all actions user.action.ts product.action.ts effects ind

    1热度

    1回答

    在Chrome控制台中显示的错误: 1. http://localhost:3000/vendor/@ngrx/store/index.js Failed to load resource: the server responded with a status of 404 (Not Found) 2. localhost/:19 Error: Error: XHR error (404 N

    13热度

    4回答

    我建立我的终极版(NGRX)应用程序与智能/转储组件,但我有决定如何“哑巴”哑成分应该是挣扎...... 例如,我有一个智能组件 (posts)其中有一个哑组件(post-list),其中包含愚蠢组件(post)。直到这里一切看起来不错。 显示一些按钮,我需要知道,如果用户admin与否,我会需要向下传递的属性admin一路从posts到post。我可以将哑组件post连接到商店并直接从哑组件获取

    0热度

    3回答

    在我的app.component.html中,我创建了一个自定义组件(联系人表组件),该应用程序在我更新商店后应获取新值(帐户)连接的用户成为别人。 app.component.html: <contact-table [contacts]="connectedAccount$ |async"></contact-table> app.component.ts: export class Ap

    3热度

    1回答

    我正在开发一个Angular 2.0和NGRX的应用程序。我来自React/Redux,所以我仍然在想办法做些什么。 当我要打印模板里面的东西我能写这样的事: @Component({ selector: 'dashboard', directives: [MainContainer], styleUrls: [ './dashboard.style.css

    0热度

    1回答

    我在我的应用程序中使用了ngrx/router,我想恢复或将其替换到组件路由器。我注意到,这两个模块具有“路由器”对象,并在那里我已经包括路由器,像这样: import { Router } from '@ngrx/router'; 我现在有: import { Router } from '@angular/router'; 其他项目我已经在这里提取和那里,但我得

    0热度

    1回答

    Store.select应该得到一个字符串,告诉他我想观察商店的属性,但问题是他没有这些属性。Insead他具有reducer功能作为公开状态属性的属性。 通过https://github.com/ngrx/store很容易注意到有什么不对。 Thier代码: counter: Observable<number>; constructor(public store: Store<AppStat

    2热度

    2回答

    我试图重新激活DOM元素的相同动画,每次输入更新。 将动画定义为分配给css类的css关键帧,而我现在使用的触发器是通过删除然后重新分配该css类,并稍稍延迟以使浏览器能够在收到新消息之前处理并呈现该更改。 这在我看来似乎很麻烦,而且更容易出错。 据我的理解,这也不是什么角2动画是关于,因为我没有真正有不同的状态和他们之间的转换,而只是一个动画,我希望重新激活一遍又一遍。 我遇到了this art

    -1热度

    1回答

    我想调用一个函数来触发文件在angular2中下载。该数据被存储在angular2应用程序(不是在服务器上的内存。基于我读过,我需要创建一个数据URI 这里是我的代码,这样做了。 downloadData() { let data="bacon,goodness"; let uri = this._sanitizer.bypassSecurityTrustUrl("data:text/csv;ch

    0热度

    1回答

    创建我的rails项目后,将其推入GIT仓库,无法将其推送到Heroku。当我运行命令: git push heroku master 我得到这个错误: ssh: connect to host heroku.com port 22: Bad file number fatal: Could not read from remote repository. Please make sur