问题描述
我一直使用Metronic的角度版本来做角度管理员。安装后,我将 enviroment.ts 和 enviroment.prod.ts 上的连接放到Firebase
npm install firebase @angular/fire --save
export const environment = {
production: true,firebase: {
apiKey: "xxxxxxxxxxxxxxxxxxxxxxxxxxx",authDomain: "xxxxxxxxxxxxx.firebaseapp.com",databaseURL: "https://xxxxxxxxxxx.firebaseio.com",projectId: "xxxxxxxxxxx",storageBucket: "xxxxxxxxxxx.appspot.com",messagingSenderId: "xxxxxxxxxxx",appId: "1:xxxxxxxxx:web:xxxxxxxxxxxxxxxxx",measurementId: "xxxxxxxxxxxxx"
}
};
正如文档所述,我还更改了文件行:
src / app / modules / _services / auth-http / index.ts
来自
export { AuthHTTPService } from './auth-fake-http.service'; // You have to comment this,when your real back-end is done
到
export { AuthHTTPService } from './auth-http.service'; // You have to uncomment this,when your real back-end is done
并注释app.module.ts上的行
environment.isMockEnabled
? HttpClientInMemoryWebApiModule.forRoot(FakeAPIService,{
passthruUnkNownUrl: true,dataEncapsulation: false,})
: [],
我在导入app.module.ts中的库中
import { AngularFireModule } from '@angular/fire';
,然后在ngModules上插入:
AngularFireModule.initializeApp(environment.firebase),
但是它仍然无法登录
有人知道我要在Metronic角度管理版本上工作还需要做什么
感谢您的帮助
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)