腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(3471)
视频
沙龙
4
回答
如
何在
firebase
云
函数
和
angular
之间
共享
typescript
类
angular
、
typescript
、
firebase
、
google-cloud-functions
我创建了一个
Angular
项目,在其中我初始化了
Firebase
Cloud Functions。我的文件夹如下所示: project-root src (
angular
components) node_modulessrc index.ts 我希望我的一些
typescript
类
可以在Cloud Functions
和
Angular
中使用,而不是在两个文件夹中都复制
浏览 24
提问于2019-11-11
得票数 4
回答已采纳
1
回答
在
云
函数
中使用
firebase
>= 5.0.1时,“找不到名称'serviceworkerregistration'”
google-cloud-firestore
我在一个单独的nodejs包中有一些在我的离子应用程序
和
云
函数
之间
共享
的
typescript
代码,其中包括一些模型,实用程序,...现在,我还在其中使用了一些
firebase
firestore
类
,比如GeoPoint
和
Timestamp。当我使用
firebase
包5.0.1或更高版本时,当我想要构建我的
云
函数
项目时,我得到了类似“找不到名称'serviceworkerr
浏览 8
提问于2019-06-02
得票数 1
5
回答
firebase
-admin在
firebase
云
函数
中使用
typescript
typescript
、
firebase
、
google-cloud-functions
、
firebase-admin
我在
云
函数
上使用了
firebase
云
函数
和
javascript。而且,我想从javascript切换到
typescript
。但是,我不能在
typescript
上使用
firebase
-admin,因为以下命令失败。command: npm install @types/
firebase
-admin --save-dev error: '@types/
firebase
-a
浏览 1
提问于2017-05-28
得票数 10
2
回答
构建多环境、多风格的
angular
应用
angular
、
firebase
、
angular-cli
、
firebase-hosting
我们有一个产品,其中包括一个
Angular
web应用程序,它使用
Firebase
与多个客户。每个客户都有自己的
Firebase
实例(dev
和
prod)。
Firebase
用于托管web应用程序,该应用程序需要
Firebase
凭据才能访问Firestore、Auth
和
云
存储。我们希望以这样一种方式设置
angular
.json :当部署到新客户端时,我们必须添加最少可能的行,以选择正确的
Firebase
配置。使用file
浏览 0
提问于2019-08-02
得票数 1
1
回答
为什么在没有完全部署的情况下,
Firebase
函数
模拟器不能更新功能?
angular
、
firebase
、
google-cloud-functions
、
firebase-cli
我在Windows10机器上使用了角5
TypeScript
,VisualStudio IDE。我正在使用
Firebase
托管、Firestore
和
Firebase
函数
。我正在
TypeScript
(index.ts)文件中的“functions”文件夹中编写
函数
。当遵循本地测试
Firebase
函数
()的说明时。
如
链接中所述,我能够通过"
firebase
服务“
和
funct
浏览 3
提问于2018-05-06
得票数 1
回答已采纳
2
回答
如
何在
parse-server中使用
Typescript
而不是Javascript编写
云
代码?
typescript
、
parse-platform
、
parse-server
我正在写一个web应用程序,前端使用
Angular
10,后端使用Parse-Server。我想使用
Typescript
而不是Javascript来编写我所有的
云
代码
函数
和
作业,但我有点不确定如何设置它,在
Angular
中一切都是“原生的”
Typescript
,所以不需要设置。关于如何使用Parse设置
Typescript
的信息非常少。我找到的只是这篇不完整的媒体文章:https://medium.com/@avifata
浏览 41
提问于2020-07-10
得票数 2
2
回答
如何使用
函数
写入我的消防站数据库?
node.js
、
firebase
、
google-cloud-firestore
、
google-cloud-functions
isTelephoneNumberConfirmed: false return snapshot.ref.set(addDoc);随后,我在航站楼上运行了以下命令:> tsc PS C:\brighterbrains\functions>
firebase
+ functions: Emulator started a
浏览 3
提问于2020-02-24
得票数 0
回答已采纳
6
回答
在
TypeScript
中列出等效项
angular
、
typescript
、
angular8
我是
angular
(
TypeScript
)的新手,我想实现两个
类
之间
的合成。我怎样才能做到这一点呢?在c#中,如果我有像A
和
B这样的两个
类
,那么我实现如下的组合{ List<B> lstClassB {get;set;} int ID {get;set;}如
何在
TypeScript
中使用此功能,
如
export class
浏览 1
提问于2019-09-17
得票数 5
2
回答
从
firebase
角度离子应用程序调用http
云
功能
javascript
、
angular
、
firebase
、
google-cloud-functions
这可能是微不足道的事情,但我是新的GCP
和
应用程序开发。Request https://europe-west6-tmaker-bd14b.cloudfunctions.net/generate_tournament8我将我的应用程序中的
函数
(目
浏览 2
提问于2021-01-02
得票数 0
回答已采纳
2
回答
将角分量文件分割成单独的文件
angular
在nodejs中,我可以轻松地将每个
函数
拆分到一个单独的文件中,但是在角度上,我不知道如何做到这一点。有没有办法根据
函数
将我的文件分割成单独的文件?
浏览 0
提问于2019-02-16
得票数 7
回答已采纳
1
回答
Firebase
函数
在react应用程序的文件外部使用
javascript
、
reactjs
、
google-cloud-functions
我刚刚在一个react应用程序文件夹中初始化了我的
firebase
函数
文件夹 myproject | +- package.json +- App.tsx 在我的服务文件夹(react-app)中,我有一些调用外部api的方法 我想在我的
云
函数
中重用这个文件,以便在react应用程序
和
云
函数</e
浏览 19
提问于2019-02-25
得票数 0
回答已采纳
2
回答
创建多个轻量级Google
函数
的最佳实践?
google-cloud-functions
谷歌
云
功能的工作方式似乎是: 假设即使模块one.js
和
two.js在运行时需要不同的包,它们
之间
的
共享</em
浏览 0
提问于2017-07-18
得票数 11
1
回答
在
Angular
6中渲染iframe内的视图,并继续使用模板变量
typescript
、
iframe
、
angular6
在
Angular
.IO中有没有同等的功能?指令中的AngularJS等效项:var template = $compile更新:找到了一些关于如
何在
typescript
中使用angularJS的教程,这可能会起作用。最后,我想在父级
和
iframe
之间
共享
变量,类似于angularJS中的$scope如
何在
父级
和</em
浏览 2
提问于2018-09-12
得票数 7
回答已采纳
1
回答
使用
云
函数
和角度更新数据
angular
、
firebase
、
google-cloud-functions
我是
firebase
环境的新手。我想使用
云
函数
和
angular
服务来更新
firebase
中的数据。我可以使用
云
函数
从
firebase
获取
angular
中的数据,如下所示return this..get(“https://us-central1-partner-f3f0b.cloudfunctions.net
浏览 3
提问于2018-04-20
得票数 0
1
回答
为服务服务auth生成
云
函数
中的访问令牌
firebase
、
google-app-engine
、
google-cloud-functions
、
google-cloud-endpoints
我试图在
云
函数
和
云端点
之间
建立服务服务身份验证。我在我的openAPI配置(云端点)的安全定义中添加了这个发行者但是,我无法找到在该服务帐户的
云
函数
中创建访问令牌的方法。 如
何在
<em
浏览 2
提问于2018-04-21
得票数 2
1
回答
云
修复&用于
Firebase
的
云
修复
firebase
、
google-cloud-firestore
云
修复
和
Firebase
的
云
修复有什么区别? 是一样的吗?如果没有,应该使用哪一种?
浏览 2
提问于2019-06-28
得票数 0
回答已采纳
1
回答
TypeError:.mergeMap$(...)readFile不是
firebase
服务
函数
中的
函数
angular
、
firebase
、
angular-ui-router
、
google-cloud-functions
、
server-side-rendering
我也遵循了视频中的步骤:
Angular
Universal
和
Firebase
托管。我还关注了视频:使用
TypeScript
的
Firebase
云
函数
入门。我使用
angular
-universal-express-
firebase
模块在
firebase
函数
中运行应用程序,当我运行
函数
的
firebase
服务时,我得到了这个错误: TypeError: readFile
浏览 4
提问于2018-08-30
得票数 1
1
回答
用于
共享
数据对象模型的
Angular
库
angular
、
module
、
interface
我正在致力于在
Angular
应用程序(
typescript
)
和
后端(C#)
之间
共享
数据对象模型-我正在寻找一种干净、自动化的方法来保持这两组数据对象模型的同步。我试图解决的问题是:从我的
angular
应用程序中
共享
/访问自动生成的
typescript
文件的最佳方式是什么?我已经研究过使用
Typescript
模块(https://www.typescriptlang.org/docs/h
浏览 10
提问于2019-06-14
得票数 0
回答已采纳
2
回答
如何正确地进行树摇动以减小包大小,并为每个
云
函数
单独入口点
firebase
、
google-cloud-functions
、
tree-shaking
我正在使用Google
Firebase
Cloud Functions
和
TypeScript
,我发现即使每个
函数
都是单独部署的,它们都
共享
相同的包
和
依赖项,即使有些
函数
既不使用它们也不导入它们。在我的例子中,一个
云
函数
使用Redis,其他的不使用,我有10个
函数
。这10个
函数
实际上最终都导入了redis相关的代码,尽管它们并没有导入这些代码。 因为所有
函数
都
共享
浏览 9
提问于2019-06-03
得票数 7
回答已采纳
1
回答
C#、
TypeScript
和
Python的
共享
类
定义
c#
、
python
、
typescript
、
azure-devops
我们正在开发一套
共享
大约15个
类
的应用程序。UI是
Angular
8,API是C#,我们有一些运行Python
函数
。我们使用的是Azure DevOps。到目前为止,我们已经在每个单独的项目中手动定义了
类
,并手动检查它们是否不匹配。但随着应用程序数量的增加,我们很快就会碰壁。理想情况下,我们希望有以下场景: 在C#
类
库中定义了这些
类
,然后在
TypeScript
和
(另外两个库)中生成它们的等价
类
,为C#/<em
浏览 5
提问于2020-03-12
得票数 0
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
此生无悔入 TypeScript
(无密完整)TS 从入门到深度掌握,晋级TypeScript高手
TS 从入门到深度掌握,晋级TypeScript高手-玫瑰伞下瞥惊鸿
TypeScript 深度解读
JavaScript 框架这一年:React、Angular 们正在互相渗透
热门
标签
更多标签
云服务器
ICP备案
实时音视频
即时通信 IM
对象存储
活动推荐
运营活动
广告
关闭
领券