腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
类型
void
上
不存在
Angular
属性
subscribe
angular
、
firebase
、
google-cloud-firestore
但是,当我试图将逻辑移动到我的服务文件中,然后试图从我的组件中的服务订阅该方法时,得到一个错误
属性
subscribe
在
类型
void
上
不存在
。a.payload.doc.data(); return { id, ...data }; ).
subscribe
constructor(private petservice : PetService
浏览 28
提问于2020-01-03
得票数 0
回答已采纳
1
回答
类型
“
void
”
上
不存在
属性
“”
subscribe
“”
angular
、
ionic2
; .
subscribe
我像这样调用这个函数: this.userService.updateLocation(position.coords) .
subscribe
浏览 1
提问于2017-05-18
得票数 0
1
回答
类型
“
void
”
上
不存在
离子
属性
“
subscribe
”
angular
、
ionic5
我正在获取
类型
为“
void
”的
属性
“”
subscribe
“”
不存在
loadSpecialInfo(){ this.data =
浏览 22
提问于2020-05-25
得票数 0
2
回答
在
angular
-cli中,
类型
'
void
‘
上
不存在
属性
'
subscribe
’
angular
我是
angular
2的新手,对于类似的问题,我没有找到任何合适的答案。 import { Injectable } from
浏览 3
提问于2017-03-27
得票数 8
回答已采纳
1
回答
类型
'() asObservable‘..ts
上
不存在
任何
属性
’=>‘(2339)
angular
、
typescript
错误:
属性
'asObservable‘在
类型
'() => any’
上
不存在
..ts(2339)错误:“订阅”
类型
上
不存在
属性
‘=>’。您的意思是“取消订阅”?ts(2551)错误:
属性
“订阅”
不存在
于'
void
'.ts(2339)
类型
上
,这是我的data.service.ts代码 import { Injecta
浏览 8
提问于2022-03-27
得票数 1
1
回答
当我在请求中“return”时,
类型
“
void
”
上
不存在
属性
“
subscribe
”
angular
、
typescript
task.service.ts: import { Injectable } from '@
angular
/core';import { ActivatedRoute, Params } from '@
angular
/router'; import { TaskService } from 'src/app(( task.service.ts : any[])
浏览 45
提问于2021-04-13
得票数 0
回答已采纳
2
回答
类型
“
void
”
上
不存在
属性
“”
subscribe
“”。“”
Angular
2 asp.net内核
javascript
、
angular
、
typescript
服务代码:import {Http, URLSearchParams} from "
angular
2/http"/api/MediaItem").map(response => { response.json() });}import {Component, Inject} from '
angular
2class Media
浏览 2
提问于2016-06-23
得票数 24
回答已采纳
1
回答
Angular
14 14:在
类型
‘
void
’..ts(2339)
上
不存在
属性
“订阅”。
angular
、
typescript
我得到了这个错误: TS2339:
属性
‘订阅’在'
void
‘
类型
上
不存在
。contacts.component.tsimport { NgForm } from '@
angular
contactId,firstName:'Roa',lastName:'Hugo'}; th
浏览 3
提问于2022-10-10
得票数 0
1
回答
错误TS2339:
属性
'timer‘在
类型
’可观察‘
上
不存在
。'switchMap‘和'takeUntil’打破了流
angular
、
typescript
、
rxjs
搬到
angular
8,rxjs6。定时器,switchMap,combineLatest,方法破坏。试图解决combineLatest或Timer问题会破坏其他
属性
的流。初始化代码在分区时中断,修复它为 const source = this.store.select(state => state.tether.isTimingreturn timer(partialInterval, interval) .takeUntil(isNotTimi
浏览 0
提问于2019-06-15
得票数 0
回答已采纳
1
回答
错误筛选器:
类型
'Observable<Event>‘
上
不存在
属性
’TS2339‘
rxjs
、
angular6
我在我的应用程序错误过滤器中得到错误:
属性
‘TS2339’
不存在
于
类型
'Observable‘
上
,我试图导入空虚的东西,但它不起作用。; const ROUTE_DATA_BREADCRUMB: string = 'breadcrumb'; this.router.events .filter(event =>
浏览 0
提问于2018-09-27
得票数 4
1
回答
类型
void
Angular
上
不存在
属性
管道
angular
这是我的代码,当我在
angular
10中对管道使用first时,它在这里给出了错误 import { first } from 'rxjs/operators'; .
subscribe
浏览 22
提问于2020-10-09
得票数 0
回答已采纳
5
回答
属性
'paramMap‘在'ActivatedRoute’
类型
上
不存在
。/node_index/@node/路由器/index“没有导出成员'ParamMap‘
angular
、
angular-routing
、
angular-router
/switchMap';import { ParamMap } from '@
angular
/router: HeroService, private location: Location .switc
浏览 2
提问于2017-07-29
得票数 2
回答已采纳
2
回答
cordova-插件-地理定位watchPosition()方法无效
angular
、
typescript
、
cordova-plugins
、
ionic2
我在写一份ionic2-
Angular
2-type的应用程序。我正在尝试使用Cordova的地理位置插件,但是当我调用watchPosition方法时,比如在编辑器中,会显示一些错误: 错误TS2339:
属性
'code‘
不存在
于
类型
'Geoposition \PositionError’
上
。错误TS2339:在
类型
'Geoposition \ PositionError‘
上
不存在
属性
'coor
浏览 3
提问于2016-09-26
得票数 5
回答已采纳
1
回答
对象
上
不存在
Angular
subscribe
属性
angular
、
typescript
、
rxjs
login(form: NgForm) { this.authService.login(form.value.email, form.value.password).
subscribe
(
浏览 0
提问于2020-02-19
得票数 0
6
回答
使用firebase 7.14.6和@转角/消防6.0.0 FCM推送通知,“AngularFireMessaging”
类型
中
不存在
属性
“messaging”
angularjs
、
firebase
、
firebase-cloud-messaging
、
angularfire2
messaging' does not exist on type 'AngularFireMessaging'import { Injectable } from '@
angular
/core';import { BehaviorSubject } from(private angula
浏览 0
提问于2020-06-04
得票数 5
回答已采纳
1
回答
'OperatorFunction<unknown,any>‘
类型
中
不存在
属性
'
subscribe
’
angular
我正在尝试从mongodb中获取一些数据,并继续获取以下错误: import { Component} from '@
angular
/core'; R
浏览 0
提问于2019-06-28
得票数 2
2
回答
无法在组件中使用多个服务
angular
我刚刚开始学习
angular
和一般的web开发。我正在尝试使用
angular
路由器在表单提交后进行重定向。但是我在第二个服务上得到了一个错误,它没有在组件中声明。如果我只有一个it works代码: import { Component, OnInit } from '@
angular
/core';import { Router } from
浏览 25
提问于2021-02-08
得票数 0
回答已采纳
2
回答
类型
'Observable<User> | Error‘
上
不存在
属性
'
subscribe
’。
类型
“Error”
上
不存在
属性
“”
subscribe
“”
angular
、
rxjs
、
observable
true; (sink)constructor: ƒ Observable(
subscribe
)__proto__: Object 在观察者对象的顶层似乎没有
subscribe
属性
,但在私有proto对象内部。/animations
浏览 28
提问于2017-08-21
得票数 1
回答已采纳
1
回答
从服务订阅数据时,
类型
void
上
不存在
属性
subscribe
错误?
javascript
、
typescript
、
angular7
、
angular-components
我在
angular
7应用程序上工作,我面对错误
属性
订阅在
类型
上
不存在
在app.component.ts的订阅数据功能上显示错误,那么如果可能的话,如何解决这个问题?_displayreport.getallReportCategories().
subscribe
((data: any[]) => { "
浏览 0
提问于2020-05-26
得票数 0
2
回答
获取响应未定义的服务的响应的角度
angular
、
typescript
我在用
Angular
8。以下是代码:callit(url: string) { (message) =>我试过: this.myservice.connect(myurl).
subscribe
但是订阅给了我这个错误: 如何
浏览 4
提问于2019-12-12
得票数 1
回答已采纳
点击加载更多
热门
标签
更多标签
云服务器
对象存储
ICP备案
云点播
腾讯会议
活动推荐
运营活动
广告
关闭
领券