腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
使用
UpgradeComponent
时
$
injector
为什么
为
空
、
下面是代码: Cannot read property 'get' of undefinedat new Wrapper_HeroDetailDirective (/AppModule/HeroDetailDirective/wrapper.ngfactory.js:7:18) 当我调试
时
,我看到
UpgradeComponent
中的$
injector</em
浏览 7
提问于2017-01-10
得票数 2
1
回答
测试
UpgradeComponent
抛出NullInjectorError:没有$
injector
的提供程序!错误
、
、
/core'; selector: 'up' constructor(elementRef: ElementRef,
injector
:
Injector
) { super(
浏览 19
提问于2020-03-16
得票数 3
2
回答
不支持异步加载指令模板
UpgradeComponent
我正在
使用
UpgradeComponent
将一个用angular.module.component定义的组件升级到Angular 4。, SimpleChanges } from '@angular/core';
浏览 0
提问于2017-07-17
得票数 5
1
回答
是否有可能升级angularjs在角4中
使用
的指令?
、
、
、
我已经升级了angularjs元素指令,以便在角4中
使用
。, Input, Output, EventEmitter } from '@angular/core'; @Input() score: number; super('m
浏览 2
提问于2017-08-30
得票数 11
3
回答
Angular2
UpgradeComponent
失踪$
injector
、
、
我正试图升级Angular1组件并在我的Angular2应用程序中
使用
它,方法是在“
使用
角2代码中的角1组件指令”下遵循,但是它会给出以下错误: at ChartDirective.
UpgradeComponent
(upgrade_component.js:97)在对第97行进行更仔细的检查
时
,这一.
UpgradeComponent<
浏览 3
提问于2016-11-18
得票数 10
回答已采纳
1
回答
加载控制器
时
出错-将AngularJS1迁移到Angular6
、
、
、
在我的示例中,我通过扩展放在文件夹"
UpgradeComponent
“下的"directive-wrappers”来
为
所有现有的AngularJS1组件设置包装器。当我尝试添加一些没有任何指令的控制器
时
,我会得到错误消息https://errors.angularjs.org
浏览 4
提问于2019-10-14
得票数 0
3
回答
在Angular应用中
使用
AngularJS组件
时
出错:" Error :试图在设置之前获取AngularJS注入器。“
、
、
、
、
我已经
使用
创建了一个基本的Angular应用程序,并添加了一个简单的AngularJS模块作为依赖项。import {
UpgradeComponent
} from '@angular/upgrade/static';
浏览 3
提问于2018-04-03
得票数 5
1
回答
角度升级-不能
使用
升级组件作为入口组件
、
我
使用
的是角度升级模块,组件从AngularJS升级。当我在模板中
使用
组件
时
,它们工作得很好,但是当我尝试
使用
它们作为条目组件
时
,我会收到一个错误:NullInjectorError: No provider for $scope!$scope是由内
浏览 1
提问于2018-11-22
得票数 1
回答已采纳
1
回答
升级AngularJS1组件
时
没有定义错误“角度”
、
、
、
我采用的方法是通过扩展放在示例中的文件夹“"
UpgradeComponent
”“下的AngularJS1组件来
为
所有现有的AngularJS1组件设置包装器。但是,当我包含第三个组件TestDirective3Wrapper
时
,在加载应用程序时,我得到的控制台错误
为
angular.min.js:127 Error: [$
injector
:unpr] http://errors.angularjs.org/1.7.5/$
injector
&
浏览 6
提问于2019-10-05
得票数 1
回答已采纳
6
回答
ui-在Angular2中选择替换
、
、
我们正在将现有的angular1项目移动到angular2,并希望替换现有的ui-select组件。有没有人找到更好的替代方案?
浏览 0
提问于2016-06-20
得票数 8
1
回答
(Angular upgrade) AngularJS组件的绑定应为未定义
、
、
我正在尝试找出
为什么
会发生这种情况,但是如果我在NG1组件上有一个可选的函数绑定(&?),那么NG2将在它上面放置一个EventEmitter :/ selector: ng1DemoComponent.selectorexport class Ng1DemoComponentFacade extends
UpgradeComponent
:
Injector
) {
浏览 6
提问于2021-04-08
得票数 1
1
回答
在角分量中
使用
AngularJS指令
、
、
、
、
我正试图升级一个angularjs指令来
使用
我的角度组件。我已经
使用
了混合(ng1 + ng2)环境。我还可以将angularjs服务注入angularjs中,并将它们用于角组件(实际上,即使
使用
angularjs1.4.x,我也能做到这一点)。现在,我试图
使用
现有的angularjs指令的角度,但不起作用。import {
Upgrade
浏览 5
提问于2017-08-30
得票数 13
1
回答
将AngularJS组件升级
为
角:没有ElementRef异常提供程序
、
、
下一层是我的新的角度组件,它被降级,这样我就可以在我的应用程序的AngularJS部分
使用
它。(它加载在ui路由器状态中)。No provider for ElementRef!someModule.component('lpProduct', ProductComponent);@Directive({}) export
浏览 1
提问于2017-04-20
得票数 2
回答已采纳
2
回答
Angular 2在Karma Jasmine测试中实例化parent中的全局注入器
、
、
我有与这篇文章相同的设置 constructor() { this.configService = ServiceLocator.
injector
.getexport class AppModule { constructor(private <em
浏览 13
提问于2017-08-22
得票数 0
2
回答
扩展部件上的角喷射器
、
我
使用
的是ionic4和Range7.2.2,我创建了一个由其他组件扩展的基本组件类,而不必重复我经常
使用
的很多东西。为了避免构造函数注入,并因此被迫在扩展类中再次将params传递给基构造器,我
使用
了
Injector
.get。经验的问题是,当以这种方式
使用
时,许多角度或离子注入器在子构造函数中注入时工作得很好,在子构造函数中
使用
时不会工作或返回空值,这是
使用
父母的引用。我确信我遗漏了一些东西,因为在
使用
我的基类和子类的注射器
时
,它们
浏览 0
提问于2019-07-03
得票数 1
回答已采纳
1
回答
在角度上,是否有理由不列出模块依赖项和模块声明?
、
在我所读过的关于Angularjs的所有教程和示例中,它们都定义了以
空
列表作为第二个参数的模块:我知道创建新模块需要有第二个参数,但我不明白
为什么
列表中从来没有任何元素然而,通过定义我的应用模块,我了解到列表代表了新模块所依赖的模块--那么
为什么
它总是
为
app子模块
空
?'myApp.users'an
浏览 3
提问于2014-05-24
得票数 4
回答已采纳
1
回答
什么时候
使用
“$
injector
”和只
使用
喷射器的角度?
在angularJS 的文档中,有些代码
使用
$
injector
,而有些代码只
使用
injector
。我很困惑。这两者之间有什么区别,以及它们的适当
使用
地点在哪里?
浏览 2
提问于2013-08-05
得票数 1
回答已采纳
1
回答
无法将工厂注入angularjs控制器
为什么
没有注入WizardPageSchoolclassCodesFactory工厂?它总是
为
空
!我的chrome控制台中的错误是: Error: [$
injector
:unpr] Unknown provider: $scopeProvider <- $scope <- WizardPageSchoolclassCodesFactory
浏览 0
提问于2014-07-19
得票数 0
2
回答
将Google Guice集成到AWS Lambda中
、
、
、
、
每当我试图调用它
时
,它就给我
空
值。System.out.println(output.toString()); } 出于某些原因,UserService userService在FirstLamdba中被设置
为
null
浏览 2
提问于2016-10-29
得票数 8
1
回答
ngSanitize被用保龄球移除,现在我得到了一个ngSanitize缺失的异常
、
当我用yeoman安装angularjs
时
,我被要求安装一些额外的软件包,如: bower uninstall --save angular-sanitizegrunt serverError: [$
injec
浏览 2
提问于2014-03-05
得票数 3
回答已采纳
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
云直播
腾讯会议
实时音视频
活动推荐
运营活动
广告
关闭
领券