小编Dil*_*age的帖子

location.reload(true)已弃用

我知道重新加载Angular单页应用程序并不理想,但是有一个地方需要重新加载整个应用程序。TSLint说不建议使用重装。还有其他选择吗?

javascript tslint angular

19
推荐指数
6
解决办法
7747
查看次数

AngularFire 2.0.1中抛出了auth/web-storage-unsupported错误

当我尝试使用带有诺基亚Lumia 520电话的"firebase-auth/web-storage-unsupported"的firebase身份验证登录我的网站时,会抛出错误代码.我正在使用AngularFire 2.0.1.有什么方法我可以解决这个问题,因为我的一些用户仍然使用旧版本的Internet Explorer这些手机.

javascript angularfire firebase-authentication

6
推荐指数
1
解决办法
609
查看次数

如何将 MatButton 添加到 Angular 库 (Angular 9)

我使用命令在新的 angular 9 项目上生成了一个库

ng g 库多选

现在我想添加 Angular Material 的 MatButton,所以我将“MatButtonModule”添加到库的主模块中。我还在库的 package.json 中添加了 "@angular/material": "^9.0.0" 作为依赖项,并将其列入了 ng-package.json 的白名单。当我尝试构建库(ng build multi-select)时,它说

Compiling TypeScript sources through ngc
ERROR: node_modules/@angular/material/button/button.d.ts:22:22 - error NG6002: Appears in the NgModule.imports of MultiSelectModule, but could not be resolved to an NgModule class

22 export declare class MatButton extends _MatButtonMixinBase implements OnDestroy, CanDisable, CanColor, CanDisableRipple, FocusableOption {
                        ~~~~~~~~~
node_modules/@angular/material/button/button.d.ts:22:22 - error NG6003: Appears in the NgModule.exports of MultiSelectModule, but could not be resolved to an NgModule, Component, …
Run Code Online (Sandbox Code Playgroud)

angular-material angular angular-ivy

4
推荐指数
1
解决办法
6495
查看次数